docker
Port already allocated
Bind for 0\.0\.0\.0:\d+ failed: port is already allocated
Fixes
- 1.Stop the container or process using the port: `docker ps` then `docker stop <id>`
- 2.Find what's using the port: `netstat -tlnp | grep <port>` or `lsof -i :<port>`
- 3.Map to a different host port: `-p 8081:80` instead of `-p 8080:80`
networkingport-conflictrun
Related Errors
docker3 fixes
Docker filesystem no space
Docker.*failed to create.*overlay|filesystem.*no space
- •Run docker system prune
- •Increase disk allocation for Docker
docker3 fixes
Docker exec into container failed
Docker.*OCI runtime.*exec failed|container.*cannot exec
- •Verify container is running
- •Check exec command exists in image
docker3 fixes
Docker build COPY file not found
Docker.*build.*COPY failed.*no such file
- •Check .dockerignore isn't excluding file
- •Verify path relative to build context