container lifecycle

The stages a container passes through: created, running, paused, stopped (exited) and removed.

In more detail

Each Docker command moves it one step: create prepares it, start runs its process, stop asks it to exit, rm deletes it. Stopping keeps the container and its data for inspection; removing deletes it but never the image.

Related terms

Taught in

References