# Wait Command

> What does docker wait do, and how would you use it in a script or CI pipeline?

Canonical: https://www.internhack.in/learn/interview/docker-containers/docker-wait-command
Last updated: 2026-11-28

Difficulty: Intermediate

## Question

What does docker wait do, and how would you use it in a script or CI pipeline?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

docker wait, Exit codes, Container lifecycle, CI scripting, Exit code 137

Previous: [Updating Limits](https://www.internhack.in/learn/interview/docker-containers/docker-update-running-container) · Next: [Checking Ports](https://www.internhack.in/learn/interview/docker-containers/docker-port-mapping-check) · [All of Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)

## More Docker & Containers questions

- [Filtering Images](https://www.internhack.in/learn/interview/docker-containers/docker-image-filtering)
- [User Check](https://www.internhack.in/learn/interview/docker-containers/docker-user-id-check)
- [Images vs. Containers](https://www.internhack.in/learn/interview/docker-containers/docker-images-vs-containers)
- [CMD vs. ENTRYPOINT](https://www.internhack.in/learn/interview/docker-containers/docker-cmd-vs-entrypoint)
- [Multi-stage Builds](https://www.internhack.in/learn/interview/docker-containers/docker-multi-stage-builds)
- [Volumes vs. Bind Mounts](https://www.internhack.in/learn/interview/docker-containers/docker-volumes-vs-bind-mounts)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)
