mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-03 15:28:35 +00:00
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:
@@ -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()
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user