1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

display network name when disconnecting network error

Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
allencloud 2016-12-27 00:36:12 +08:00
parent b81f47a288
commit f0844de8f0

View file

@ -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 {