Skip to content

Instantly share code, notes, and snippets.

@ko22009
Created September 26, 2020 07:56
Show Gist options
  • Save ko22009/54a9eaa5598ad8d87a46c260a2b46965 to your computer and use it in GitHub Desktop.
Save ko22009/54a9eaa5598ad8d87a46c260a2b46965 to your computer and use it in GitHub Desktop.
Docker useful commands
docker-compose up
docker-compose down
docker-compose down -v
docker exec -it php bash
Useful commands
List all containers (only IDs)
docker ps -aq
Stop all running containers.
docker stop $(docker ps -aq)
Remove all containers.
docker rm $(docker ps -aq)
Remove all images.
docker rmi $(docker images -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment