1
0
mirror of https://github.com/docker/cli.git synced 2026-01-15 07:40:57 +03:00

Merge pull request #17187 from mavenugo/dopts

Fail the container start if the network has been removed
Upstream-commit: 48147d287b85975a8235c8d49a9e3cacce1a1534
Component: engine
This commit is contained in:
Jess Frazelle
2015-10-19 17:12:07 -07:00

View File

@@ -894,11 +894,7 @@ func (container *Container) allocateNetwork() error {
for _, n := range settings {
if err := container.connectToNetwork(n, updateSettings); err != nil {
if updateSettings {
return err
}
// dont fail a container restart case if the user removed the network
logrus.Warnf("Could not connect container %s : %v", container.ID, err)
return err
}
}