Docker Compose

docker compose restart

Stop and start existing service containers. Does not reconcile a changed service model or adopt a newly built image. Use up after reviewing desired changes. May interrupt requests; scope to lab services. Compare container and image identities before and after restart and reconciliation.

Formal Syntax & Structure

docker syntaxdocker
docker compose restart [OPTIONS] [SERVICE...]

Parameters & Attributes

NameTypeDescription
SERVICEstringExisting service name

Working Example

Example Snippetdocker
docker compose -f compose.yaml -p bm-v14-rebuild restart worker
Docker Reference