|
@@ -536,7 +536,7 @@ func (daemon *Daemon) allocateNetwork(container *container.Container) error {
|
|
|
|
|
|
// Cleanup any stale sandbox left over due to ungraceful daemon shutdown
|
|
// Cleanup any stale sandbox left over due to ungraceful daemon shutdown
|
|
if err := controller.SandboxDestroy(container.ID); err != nil {
|
|
if err := controller.SandboxDestroy(container.ID); err != nil {
|
|
- logrus.Errorf("failed to cleanup up stale network sandbox for container %s", container.ID)
|
|
|
|
|
|
+ logrus.WithError(err).Errorf("failed to cleanup up stale network sandbox for container %s", container.ID)
|
|
}
|
|
}
|
|
|
|
|
|
if container.Config.NetworkDisabled || container.HostConfig.NetworkMode.IsContainer() {
|
|
if container.Config.NetworkDisabled || container.HostConfig.NetworkMode.IsContainer() {
|