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

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

Code language: PHP (php)