Merge pull request #29712 from allencloud/add-network-name-when-disconnecting-error
display network name when disconnecting network error Upstream-commit: 16500dfb1d1c0a3fc0d363ae782c22e8eda3b720 Component: engine
This commit is contained in:
@ -808,7 +808,7 @@ func (daemon *Daemon) disconnectFromNetwork(container *container.Container, n li
|
||||
}
|
||||
|
||||
if ep == nil {
|
||||
return fmt.Errorf("container %s is not connected to the network", container.ID)
|
||||
return fmt.Errorf("container %s is not connected to network %s", container.ID, n.Name())
|
||||
}
|
||||
|
||||
if err := ep.Leave(sbox); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user