Sfoglia il codice sorgente

Merge pull request #29712 from allencloud/add-network-name-when-disconnecting-error

display network name when disconnecting network error
Sebastiaan van Stijn 8 anni fa
parent
commit
16500dfb1d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      daemon/container_operations.go

+ 1 - 1
daemon/container_operations.go

@@ -808,7 +808,7 @@ func (daemon *Daemon) disconnectFromNetwork(container *container.Container, n li
 	}
 	}
 
 
 	if ep == nil {
 	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 {
 	if err := ep.Leave(sbox); err != nil {