docker start Explained

What docker start does, with an example.

Published November 8, 2026

docker start restarts a stopped container using its existing configuration and filesystem state.

How it works

It does not create anything new; data written inside the container is still there (unless it was removed).

Use -a to attach output or docker restart to stop and start.

Try it

docker start web
web
docker ps
web Up 1 second

Practical examples

Start

docker start web

Start and attach

docker start -a -i mycontainer

Restart

docker restart web

Start all stopped

docker start $(docker ps -aq)

Common mistakes

  • Expecting a fresh container (use docker run).
  • Changed image not applied (recreate instead).
  • Forgetting restart policies.

Key takeaways

  • docker start restarts a stopped container using its existing configuration and filesystem state.
  • Run docker <command> --help for all options.
  • Clean up unused resources regularly.

FAQ

start vs run?

start reuses a stopped container; run creates a new one.

Where can I see all options?

Run the command with --help.

More General articles