Closed johnmccabe closed 8 years ago
Note, I had actually deleted the calico networks as well (unintentionally) before reattempting the command docker network rm $(docker network ls -q)
.
The error in the Clocker ui was (no streams accessible).
2 of 2 parallel child tasks failed; 2 errors including:
Error invoking start at SameServerEntityImpl{id=br7mxuON}:
Error invoking start at DockerContainerImpl{id=Hauc4JM0}:
SSH task ended with exit code 1 when 0 was required, in Task[ssh:
( if test "$UID" -eq 0; then ( docker network create --driver bridge -o
com.docker.network.bridge.enable_ip_masquerade=true -o
com.docker.network.bridge.host_binding_ipv4=0.0.0.0 PHG8z0ba_bridge ); else sudo -E -n -S -- docker
network create --driver bridge -o com.docker.network.bridge.enable_ip_masquerade=true -o
com.docker.network.bridge.host_binding_ipv4=0.0.0.0 PHG8z0ba_bridge; fi )]@W23BxmGF: ( if test
"$UID" -eq 0; then ( docker network create --driver bridge -o
com.docker.network.bridge.enable_ip_masquerade=true -o
com.docker.network.bridge.host_binding_ipv4=0.0.0.0 PHG8z0ba_bridge ); else sudo -E -n -S -- docker
network create --driver bridge -o com.docker.network.bridge.enable_ip_masquerade=true -o
com.docker.network.bridge.host_binding_ipv4=0.0.0.0 PHG8z0ba_bridge; fi )
Clocker 1.1.0 release ought to have fixed this, I believe? Will do some further testing.
The fact that it was 31 bridge networks (i.e. 2^n-1 where n is 5) makes me suspicious. I wonder if this is an underlying OS limit or a Docker limit? Would be disappointing to not be able to have more than 32 separate application containers (and therefore bridge networks, for isolation) per host.
@johnmccabe Better network removal has been implemented in #296 which will mitigate this issue
Thanks @grkvlt I'm seeing the network deletion working as expected now.
Looks like some sort of hard limit on the number of bridges that can be created?
At this point this failed I had 17 calico, 31 bridge, 1 host and 1 null networks.
Deleting some unused networks and repeating the command was successful.
This is on Softlayer with a docker with calico 1.1.10-SNAPSHOT from a few days ago.
Is there an upper limit on the number of networks that can be provisioned, or have I missed some setup by deploying the docker cloud via the template wizard?