Docker CLI

docker restart

Restart a container without replacing its identity or writable layer. A new process is launched; in-memory state is not retained. Stop timeout applies during shutdown. Example assumes an existing container you created in the approved disposable lab; confirm context and ownership before use.

Formal Syntax & Structure

docker syntaxdocker
docker restart [OPTIONS] CONTAINER [CONTAINER...]

Parameters & Attributes

NameTypeDescription
CONTAINERstringExisting lab container name or ID.

Return Value

CLI output

Target identifier on success.

Working Example

Example Snippetdocker
docker restart -t 2 bm02-cycle
Docker Reference