Assignment for docker day 1

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Q1. Explain What is Docker Container with image?

Docker container with image is an running image, which have the basis things like ROOT FS, PID NS, USER NS, and NET NS.

Q2. What is the differenece between docker stop and docker kill?

the difference i observed was during the stop the exit value is zero (0) and during the kill i was getting non zero value (137)

ubuntu@ip-172-31-28-155:~$ sudo docker stop abhin
abhin
ubuntu@ip-172-31-28-155:~$ sudo docker ps -a | grep abhin
28525b0ff5df httpd “httpd-foreground” 54 seconds ago Exited (0) 8 seconds ago abhin

ubuntu@ip-172-31-28-155:~$ sudo docker start abhin
abhin
ubuntu@ip-172-31-28-155:~$ sudo docker kill abhin
abhin
ubuntu@ip-172-31-28-155:~$ sudo docker ps -a | grep abhin
28525b0ff5df httpd “httpd-foreground” About a minute ago Exited (137) 2 seconds ago abhin

Q3. What is the differenece between docker pause and docker unpause?

We can pause and unpause docker container using the pause and unpause commands.

28525b0ff5df httpd “httpd-foreground” 5 minutes ago Up 2 minutes (Paused) 80/tcp abhin

28525b0ff5df httpd “httpd-foreground” 6 minutes ago Up 2 minutes 80/tcp abhin