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.
blocks container and when container is stop ,it prints their exit code
[root@ip-172-31-4-255 centos]# docker run -dit –name=my_container ubuntu bash
dcd196da19b9c9b356597efa55b442fe0479f7c4f66d6dcf6745fab0995a64eb
[root@ip-172-31-4-255 centos]# docker wait my_container
in duplicated terminal
[root@ip-172-31-4-255 centos]# docker stop my_container
my_container
in previous terminal
[root@ip-172-31-4-255 centos]# docker wait my_container
0