• build: docker build . -t <tag_name>
  • connect to a container: docker exec -it <container_name> bash
  • delete
    • delete all volumes: docker volume rm $(docker volume ls -q) - docker volume rm - docker volume ls
    • delete all: docker stop $(docker ps -aq) && docker rm $(docker ps -aq) && docker rmi $(docker images -q)
  • list containers - docker ps
    • list running containers: docker ps
    • list all containers: docker ps -a
  • prune
    • prune all images: docker image prune --all
    • system: docker system prune
    • system with images: docker system prune --all



Docker on Mac

Last modified July 5, 2023: Update (d12b1f6)