Docker Cheatsheet
- Start docker service
WSL: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
- Check all containers
- Check all images
- Stop docker container, e.g stop nginx
- Restart container,e.g restart nginx
- Remove stopped container,e.g remove unused nginx container
- Delete image,e.g delete nginx image
- Check container log, e.g check nginx log
- Restart all containers
- Start docker compose
- Stop all containers in docker-compose.yml
- Remove all containers in docker-compose.yml
- Remove all unused containers
- Remove all images which are not used by existing containers
- Enter the container to execute the command