Command

Docker Wait for a Container to Finish Command

The Docker command to wait for a container to finish is docker wait CONTAINER.

Quick Answer

Command
docker wait CONTAINER
DockerCommand

Wait for a Container to Finish

Type this command
docker wait CONTAINER

Blocks until the container exits, then prints its exit code.

Learn More

How to wait for a container to finish in Docker

  1. Open the terminal or command interface for Docker.
  2. Type docker wait CONTAINER, replace any placeholders, and run it.

Docker Wait for a Container to Finish Command

Run docker wait CONTAINER.

Related Commands

Frequently asked questions

What is the Docker command to wait for a container to finish?

Run docker wait CONTAINER.

Where do I type this Docker command?

Type it in the terminal or command-line interface used by Docker.

Does this Docker command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify