mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
daemon: translateContainerdStartErr(): use const/enum for exit-statuses
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -124,7 +124,7 @@ func (daemon *Daemon) containerStart(ctx context.Context, container *container.C
|
||||
container.SetError(retErr)
|
||||
// if no one else has set it, make sure we don't leave it at zero
|
||||
if container.ExitCode() == 0 {
|
||||
container.SetExitCode(128)
|
||||
container.SetExitCode(exitUnknown)
|
||||
}
|
||||
if err := container.CheckpointTo(daemon.containersReplica); err != nil {
|
||||
logrus.Errorf("%s: failed saving state on start failure: %v", container.ID, err)
|
||||
|
||||
Reference in New Issue
Block a user