1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00

VirtualBox: Delete machine in 'PAUSED' state

Signed-off-by: Daehyeok Mun <daehyeok@gmail.com>
This commit is contained in:
Daehyeok Mun
2015-11-19 23:50:50 -07:00
parent e537a51926
commit 02da868c08

View File

@@ -514,6 +514,10 @@ func (d *Driver) Remove() error {
if err := d.Stop(); err != nil {
return err
}
} else if s != state.Stopped {
if err := d.Kill(); err != nil {
return err
}
}
// vbox will not release it's lock immediately after the stop
time.Sleep(1 * time.Second)