Skip to content

Commit

Permalink
Merge pull request #9599 from LK4D4/no_release_non_own
Browse files Browse the repository at this point in the history
Don't try release network in non-private modes
  • Loading branch information
crosbymichael committed Dec 12, 2014
2 parents 5a26b89 + b3ade99 commit 14a82de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14a82de

Please sign in to comment.