docker start
Starts a container that already exists, keeping its writable layer and settings.
In more detail
Unlike docker run, it does not create a new container, so data written inside the container is still there. It reuses the options the container was created with.
Examples
docker start -a lifecycle-demodocker start m07l03-b3 brings a stopped broker back with its data and broker ID.Related terms
- docker create — Prepares a container from an image, with its writable layer and settings, without starting it.
- docker stop — Asks a running container to shut down cleanly, then forces it if it does not.
- container lifecycle — The stages a container passes through: created, running, paused, stopped (exited) and removed.
- foreground mode — Running a container with its output connected to your terminal until it exits.
- broker ID — The number that uniquely identifies each broker inside a cluster.
Taught in
- Union Filesystems, Images And Writable Layers — Docker Architecture & Production Containers
- Run, Stop, Restart And Remove A Container — Docker Architecture & Production Containers
- CMD, ENTRYPOINT, USER And Process Signals — Docker Architecture & Production Containers
- Losing A Broker — Apache Kafka & Event Streaming