Signed-off-by: Antonio Murdaca <runcom@redhat.com>
| ... | ... |
@@ -1081,7 +1081,7 @@ func (daemon *Daemon) setNetworkNamespaceKey(containerID string, pid int) error |
| 1081 | 1081 |
search := libnetwork.SandboxContainerWalker(&sandbox, containerID) |
| 1082 | 1082 |
daemon.netController.WalkSandboxes(search) |
| 1083 | 1083 |
if sandbox == nil {
|
| 1084 |
- return derr.ErrorCodeNoSandbox.WithArgs(containerID) |
|
| 1084 |
+ return derr.ErrorCodeNoSandbox.WithArgs(containerID, "no sandbox found") |
|
| 1085 | 1085 |
} |
| 1086 | 1086 |
|
| 1087 | 1087 |
return sandbox.SetKey(path) |
| ... | ... |
@@ -190,7 +190,7 @@ func (m *containerMonitor) Start() error {
|
| 190 | 190 |
m.container.ExitCode = -1 |
| 191 | 191 |
m.resetContainer(false) |
| 192 | 192 |
|
| 193 |
- return derr.ErrorCodeCantStart.WithArgs(utils.GetErrorMessage(err)) |
|
| 193 |
+ return derr.ErrorCodeCantStart.WithArgs(m.container.ID, utils.GetErrorMessage(err)) |
|
| 194 | 194 |
} |
| 195 | 195 |
|
| 196 | 196 |
logrus.Errorf("Error running container: %s", err)
|