Files
docker-docs/compose/reference/restart.md
Dirk d8d822adff Added a bit more detail to restart.md (#1668)
This killed me for a while, I expected that since environment variables were set after the build process that they would be reloaded on restart.
2017-02-16 16:00:24 -08:00

644 B

description, keywords, title
description keywords title
Restarts Docker Compose services. fig, composition, compose, docker, orchestration, cli, restart docker-compose restart
Usage: restart [options] [SERVICE...]

Options:
-t, --timeout TIMEOUT      Specify a shutdown timeout in seconds. (default: 10)

Restarts all stopped and running services.

If you make changes to your docker-compose.yml configuration these changes will not be reflected after running this command.

For example, changes to environment variables (which are added after a container is built, but before the container's command is executed) will not be updated after restarting.