Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 584 Bytes

File metadata and controls

49 lines (32 loc) · 584 Bytes

Docker Commands

This is a list with some Docker commands. I hope that help you! 😊

Exec

Enter inside a container.

docker exec -it <CONTAINER_NAME> <COMMAND>

Cleaning

Clean your Docker environment.

docker system prune -af
  • Stop all containers.
docker stop $(docker ps -aq)
  • Remove all containers.
docker rm $(docker ps -aq)
  • Remove all images.
docker rmi $(docker images -a)
  • Remove all volumes.
docker volume prune -f
  • Remove all network.
docker network prune -f