Difficulty: Intermediate
What does 'docker wait' do?
It blocks until a container stops, then prints its exit code. Useful for automation scripts.
Scripts, Lifecycle
JavaScript is required for the interactive version of this page, including the code playground and progress tracking. Browse all InternHack tutorials.