DevOps Certification Training Course
- 139k Enrolled Learners
- Weekend/Weekday
- Live Class
In my previous blogs, I have covered What is Docker, and how you can use it. Today, in this blog, I will talk about the Top 15 Docker Commands that you will be using frequently while you are working with Docker. The trend of Docker container has been growing uncontainably with organizations actively looking for professionals possessing Docker certification and a sound knowledge of these Docker commands will give you the needed expertise.
Following are the commands which are being covered:
1. docker –version
This command is used to get the currently installed version of docker
2. docker pull
Usage: docker pull <image name>
This command is used to pull images from the docker repository(hub.docker.com)
Usage: docker run -it -d <image name>
This command is used to create a container from an image
This command is used to list the running containers
This command is used to show all the running and exited containers
Usage: docker exec -it <container id> bash
This command is used to access the running container
Usage: docker stop <container id>
This command stops a running container
Usage: docker kill <container id>
This command kills the container by stopping its execution immediately. The difference between ‘docker kill’ and ‘docker stop’ is that ‘docker stop’ gives the container time to shutdown gracefully, in situations when it is taking too much time for getting the container to stop, one can opt to kill it
Usage: docker commit <conatainer id> <username/imagename>
This command creates a new image of an edited container on the local system
This command is used to login to the docker hub repository
Usage: docker push <username/image name>
This command is used to push an image to the docker hub repository
This command lists all the locally stored docker images
Usage: docker rm <container id>
This command is used to delete a stopped container
Usage: docker rmi <image-id>
This command is used to delete an image from local storage
Usage: docker build <path to docker file>
This command is used to build an image from a specified docker file
Want to learn more about docker commands? Here is a Docker Tutorial to get you started. Alternatively, you can take a top down approach and start with this Devops Tutorial.
Now that you have understood what is DevOps, check out our DevOps Certification Training by Edureka, a trusted online learning company with a network of more than 250,000 satisfied learners spread across the globe. The Edureka DevOps Certification Training course helps learners gain expertise in various DevOps processes and tools such as Puppet, Jenkins, Nagios, Ansible, Chef, Saltstack and GIT for automating multiple steps in SDLC.
Got a question for us? Please mention it in the comments section and we will get back to you.
Course Name | Date | |
---|---|---|
Docker Certification Training Course | Class Starts on 25th February,2023 25th February SAT&SUN (Weekend Batch) | View Details |
Docker Certification Training Course | Class Starts on 11th March,2023 11th March SAT&SUN (Weekend Batch) | View Details |
edureka.co
I’m a docker newbie. This article was very useful. Thanks!