Merge pull request #8315 from dqminh/save-start-error

Save start error into State.Error when the container fails to start
This commit is contained in:
Jessie Frazelle
2014-10-24 13:13:00 -07:00
3 changed files with 52 additions and 0 deletions
+2
View File
@@ -297,6 +297,8 @@ func (container *Container) Start() (err error) {
// setup has been cleaned up properly
defer func() {
if err != nil {
container.setError(err)
container.toDisk()
container.cleanup()
}
}()