mirror of
https://github.com/docker/cli.git
synced 2026-01-16 20:22:36 +03:00
Fix network disabled for container
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael) Upstream-commit: 66782730b85db20600ce48fcab203a5eb43bcb02 Component: engine
This commit is contained in:
@@ -726,7 +726,7 @@ func (container *Container) Start() (err error) {
|
||||
}
|
||||
|
||||
var en *execdriver.Network
|
||||
if !container.runtime.networkManager.disabled {
|
||||
if !container.Config.NetworkDisabled {
|
||||
network := container.NetworkSettings
|
||||
en = &execdriver.Network{
|
||||
Gateway: network.Gateway,
|
||||
|
||||
Reference in New Issue
Block a user