docker

My Note

  • Containers
bash
# stop all containers
docker kill $(docker ps -q)

# remove all containers
docker rm $(docker ps -a -q)
  • Images
bash
# remove all docker images
docker rmi $(docker images -q)
  • M1 mac
bash
docker run --platform linux/amd64
bash
# https://buddy.works/tutorials/docker-commands-cheat-sheet