Day 20 of #90daysofdevops
Hey Techies! Welcome to this blog
In this blog, we are going to start the Cheatsheet for Docker π
Cheatsheet For Docker
List of docker commands for beginners
COMMAND | EXPLANATION |
docker build -t <image_name> <location of Dockerfile> | to build an image |
docker run -d --name=<name of container> <image:latets> | to run an image |
docker ps | list of running container |
docker ps -a | list of all container |
docker stop <container id> | to stop a running container |
docker start <container id> | to start a running container |
docker rm <container id> | to remove a stopped container |
docker image ls | list of images |
docker image ls -a | list of all images |
docker rmi -f <image_id> | remove an image from local disk |
docker image prune | to remove the non useful image from local disk |
docker volume ls | list of all the volumes |
docker network ls | list of all the network |
docker-compose up | to build and run and image by compose file |
docker-compose down | to stop the image by compose file |
Thank you so much for taking the time to read till the end! Hope you found this blog informative and helpful.
Feel free to explore more of my content, and don't hesitate to reach out if need any assistance from me or in case of you have any questions.
Happy Learning!
~kritika :)