Docker Troubleshooting
- Check running containers
docker ps
- Stop a specific container
docker stop CONTAINER-ID
- Delete a specific container
docker rm CONTAINER-ID
- Check existing images
docker images
- Delete an existing image (all containers which use the image must be deleted)
docker rmi IMAGE-ID
- Delete all unused resources
docker system prune -s
- Debug a docker-compose container
docker logs --tail 50 --follow --timestamps CONTAINER-NAME
- Cleanup/clobber docker-compose to start over
docker-compose down --rmi all --volumes --remove-orphans