From 9c3d1236d22504410bf7363acbad382917e3a630 Mon Sep 17 00:00:00 2001 From: Yanqiang Miao Date: Sat, 24 Sep 2016 11:24:48 +0800 Subject: [PATCH] Delete the redundant function 'errClusterNetworkOnRun' Signed-off-by: Yanqiang Miao --- daemon/container_operations.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/daemon/container_operations.go b/daemon/container_operations.go index 62d2533ce6..4657e12035 100644 --- a/daemon/container_operations.go +++ b/daemon/container_operations.go @@ -330,10 +330,6 @@ func (daemon *Daemon) updateNetwork(container *container.Container) error { return nil } -func errClusterNetworkOnRun(n string) error { - return fmt.Errorf("swarm-scoped network (%s) is not compatible with `docker create` or `docker run`. This network can only be used by a docker service", n) -} - func (daemon *Daemon) findAndAttachNetwork(container *container.Container, idOrName string, epConfig *networktypes.EndpointSettings) (libnetwork.Network, *networktypes.NetworkingConfig, error) { n, err := daemon.FindNetwork(idOrName) if err != nil {