Assignent for Docker Day1
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
Q1. Explain What is Docker Container with image?
Docker container with image is an executable software package built on top of its own root file system. Every docker image will have its own docker container.
Q2. What is the difference between docker stop and docker kill?
‘stop’ commands does graceful shutdown….where ‘kill’ command does a forceful kill. The status code will be different for both eventhough the status is same (Exited)
after stop command, exit code is 0
2 docker create --name kannan httpd
3 docker ps -a
4 docker start kannan
5 docker stop kannan
6 docker ps -a
7 docker start kannan
8 docker kill kannan
9 docker ps -a
10 history
Q3. What is the difference between docker pause and docker unpause?
after pause command (docker pause kannan)
Using pause command we can suspend the container for some time and we can resume it later
11 docker start kannan
12 docker pause kannan
13 docker ps -a
14 docker unpause kannan
15 docker ps -a