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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user