Created
September 26, 2020 07:56
-
-
Save ko22009/54a9eaa5598ad8d87a46c260a2b46965 to your computer and use it in GitHub Desktop.
Docker useful commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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