7. List of 20 docker commands and its use cases with example? by Johnson
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
- docker ps — To check running containers
- docker images — To check pulled images
- docker pull — To pull images from docker hub registry
- docker push — To push custom images to docker hub registry
- docker run — To start and run a container
- docker exec — To enter inside the container with shell
- docker start — To start a container
- docker stop — To stop a container
- docker restart — To restart a container
- docker build — To build a custom image using dockerfile
- docker commit — To build image from running container
- docker logs — To check the logs of specified container
- docker rm — To remove or delete container
- docker rmi — To remove image
- docker kill — To kill a container
- docker –version — To check the current docker version
- docker login — To login docker hub into local
- docker system prune — To remove all unused containers, networks, images