What is docker wait?

DevOps

MOTOSHARE 🚗🏍️
Turning Idle Vehicles into Shared Rides & Earnings

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Owners earn. Renters ride.
🚀 Everyone wins.

Start Your Journey with Motoshare

It Blocks the docker until one or more containers stop, then prints the respective exit codes

docker wait js5
Ex:
Run a docker in one terminal - docker run -dit --name=js5 ubuntu bash
Run docker wait command in another terminal - docker wait js5
Stop docker in the first terminal - docker stop js5
Exit code 0 prints on the terminal 2
Code language: PHP (php)