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.
docker wait command will block one or multiple containers until it is stopped. Once the container is stopped it will retun 0 meaning that the container is stopped.
docker run --name akilan_container -d nginx
docker wait akilan_container
//opening a new instance and stopping it there
docker stop akilan_container
//The exit code will be returned below the wait instance
root@ip-172-31-28-155:/home/ubuntu# docker wait akilan_container
0