mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-28 03:38:09 +00:00
Merge pull request #9599 from LK4D4/no_release_non_own
Don't try release network in non-private modes
This commit is contained in:
+1
-1
@@ -547,7 +547,7 @@ func (container *Container) AllocateNetwork() error {
|
||||
}
|
||||
|
||||
func (container *Container) ReleaseNetwork() {
|
||||
if container.Config.NetworkDisabled {
|
||||
if container.Config.NetworkDisabled || !container.hostConfig.NetworkMode.IsPrivate() {
|
||||
return
|
||||
}
|
||||
eng := container.daemon.eng
|
||||
|
||||
Reference in New Issue
Block a user