Merge pull request #17726 from runcom/fix-errors-format
Fix errors format Upstream-commit: b52bedbd480b5029656733a449bd3596b8561e5a Component: engine
This commit is contained in:
@@ -1081,7 +1081,7 @@ func (daemon *Daemon) setNetworkNamespaceKey(containerID string, pid int) error
|
||||
search := libnetwork.SandboxContainerWalker(&sandbox, containerID)
|
||||
daemon.netController.WalkSandboxes(search)
|
||||
if sandbox == nil {
|
||||
return derr.ErrorCodeNoSandbox.WithArgs(containerID)
|
||||
return derr.ErrorCodeNoSandbox.WithArgs(containerID, "no sandbox found")
|
||||
}
|
||||
|
||||
return sandbox.SetKey(path)
|
||||
|
||||
@@ -190,7 +190,7 @@ func (m *containerMonitor) Start() error {
|
||||
m.container.ExitCode = -1
|
||||
m.resetContainer(false)
|
||||
|
||||
return derr.ErrorCodeCantStart.WithArgs(utils.GetErrorMessage(err))
|
||||
return derr.ErrorCodeCantStart.WithArgs(m.container.ID, utils.GetErrorMessage(err))
|
||||
}
|
||||
|
||||
logrus.Errorf("Error running container: %s", err)
|
||||
|
||||
Reference in New Issue
Block a user