docker restart

Stops and then starts a container again.

In more detail

It is docker stop followed by docker start on the same container, keeping its writable layer. For automatic restarts after crashes or reboots use a restart policy instead.

Related terms

Taught in

References