-
Notifications
You must be signed in to change notification settings - Fork 108
Docker Errors Guide
Common errors when start a Lab
- Actions errors:
ERROR 1
cannot create network 07cb3426b68bbecfc412c41f2b58ac303fdf47814b73603cb54a1a2444df20fd (br-07cb3426b68b): conflicts with network 3e83e5012ea5484342f7b5d47bf3bd4997b8b7f92b1421c691a5a6df4c10d1d9 (br-3e83e5012ea5): networks have overlapping IPv4
Problem: You're trying to create a network that Docker is already using.
Possible causes:
-
Another lab is running with same subnet inside the application. Check all other labs and see if there's a subnet conflict
-
Your docker-engine is running some container with a network already used. Try this docker command on terminal to see all the created subnets:
for i in $(docker network ls | awk '{print $2}'); do docker network inspect $i -f '{{.Name}} /{{.IPAM}}' ; done
ERROR 2
for SamePortContainer Cannot start service SamePortContainer: driver failed programming external connectivity on endpoint errorsameport_SamePortConatiner_1 (6b725d69b4003a7be319f5a5a58476d3b70140aad49eaa787f0c75ba200e608a):** Bind for 0.0.0.0:90 failed**: port is already allocated Encountered errors while bringing up the project.
Problem : It's a port conflict: the X port ( in this case 90 ) is already used by another container.
Possible causes: Another lab with a container using same port is running inside the application. Check all other running labs and see if there's a conflict. A docker container outside the application is using that port. On terminal run docker ps in order to see the running containers.
- Copy errors
ERROR 1
Command failed: docker cp ... 04789d1e77b4e47eab917f97f493e44b1ff799a5dbec2e2c3e9480dee37bc519 :/wrongPath redraw "docker cp" requires exactly 2 argument(s). See 'docker cp --help'. Usage: docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|- docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH Copy files/folders between a container and the local filesystem
**Problem **: This error occurs when you give invalid container / host path. Have you inserted some space?
Solution: Go on graphic network and check your copy commands
ERROR 2
Command failed: docker cp ...Error response from daemon: lstat /var/lib/docker/aufs/mnt/b39873971fa6f1291793d6e8f3f0785ec5fa84c240f038a5c7ddd0d1c480aeba/recursivePath/anotherPath: no such file or directory
**Problem **: This error occurs when you give invalid container / host path. Have you inserted some space?
Solution: Go on graphic network and check your copy commands