Assignment for docker day 1

DevOps

YOUR COSMETIC CARE STARTS HERE

Find the Best Cosmetic Hospitals

Trusted • Curated • Easy

Looking for the right place for a cosmetic procedure? Explore top cosmetic hospitals in one place and choose with confidence.

“Small steps lead to big changes — today is a perfect day to begin.”

Explore Cosmetic Hospitals Compare hospitals, services & options quickly.

✓ Shortlist providers • ✓ Review options • ✓ Take the next step with confidence

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