Command
Docker Restart a Container Command
The Docker command to restart a container is docker restart.
Quick Answer
- Command
docker restart
DockerCommand
Restart a Container
Type this command
docker restart
Stops and starts a container in one step.
How to restart a container in Docker
- Open the terminal or command interface for Docker.
- Type docker restart, replace any placeholders, and run it.
Docker Restart a Container Command
Run docker restart.
Frequently asked questions
What is the Docker command to restart a container?
Run docker restart.
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