πŸš€ DevOps Certified Professional
πŸ“… Starting: 1st of Every Month 🀝 +91 8409492687 | 🀝 +1 (469) 756-6329 πŸ” Contact@DevOpsSchool.com

Assigment-3

DevOps

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

What is docker update and docker wait? Explain with example commands.

Docker Update:
Update the container configuration like cpu, memory, restart policy, etc.

docker update --kernel-memory 512M ramesh
docker update --restart=on-failure:3 ramesh
docker update --cpus 2 ramesh
docker update --restart=no ramesh

Docker Wait:

Block until one or more containers stop, then print their exit codes.

docker wait ramesh
127
docker ps -a |grep ramesh
7181391c7b98 ubuntu "bash" 50 minutes ago Exited (127) 30 seconds ago
docker wait ramesh
0
docker stop ramesh
docker wait ramesh
137
docker kill ramesh

prints the exit codes accordingly.