1
0
mirror of https://github.com/rancher/os.git synced 2025-09-13 13:39:53 +00:00

Delete previous upgrade container before upgrading

This commit is contained in:
Josh Curl
2016-03-29 11:53:40 -07:00
parent 529e7dab06
commit 047884d4aa

View File

@@ -212,6 +212,12 @@ func startUpgradeContainer(image string, stage, force, reboot, kexec bool) error
}
}
// If there is already an upgrade container, delete it
// Up() should to this, but currently does not due to a bug
if err := container.Delete(); err != nil {
return err
}
if err := container.Up(); err != nil {
return err
}