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

Prevent /var/lib/boot2docker/bootlocal.sh munging on restart

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
Nathan LeClaire
2016-03-22 12:22:15 -07:00
parent 137adfe306
commit bc89bf5e8d

View File

@@ -612,8 +612,12 @@ func (d *Driver) Stop() error {
// Restart restarts a machine which is known to be running.
func (d *Driver) Restart() error {
if err := d.vbm("controlvm", d.MachineName, "reset"); err != nil {
return err
if err := d.Stop(); err != nil {
return fmt.Errorf("Problem stopping the VM: %s", err)
}
if err := d.Start(); err != nil {
return fmt.Errorf("Problem starting the VM: %s", err)
}
d.IPAddress = ""