dicer compose up
Creates the networks and volumes the services use, pulls the images the host
does not have, and brings each service’s instance up to date with the file:
creating the missing ones, recreating those whose definition has changed or
whose image has moved, as after dicer compose pull, and starting those that
are stopped. Services start after those they depend on, and those that do not
depend on each other start at the same time.
Naming services brings up those and what they depend on.
The instances’ consoles are written out until they all stop, each line marked with its instance’s name. Ctrl+C stops them; a second Ctrl+C stops waiting. With -d they run in the background instead.
Usage
$ dicer compose up [SERVICE...] [flags]
Examples
$ dicer compose up -d
$ dicer compose up -d --wait
$ dicer compose up web
$ dicer compose up -d --force-recreate --remove-orphans
Flags
| Flag | Description |
|---|---|
-d, --detach | Run in the background: return once the instances have started. |
--force-recreate | Recreate every instance, even those whose definition has not changed. |
--no-recreate | Leave instances that already exist as they are, even if their definition has changed. |
--pull string | When to pull images: missing, always or never. Default: missing. |
--remove-orphans | Delete the project’s instances whose service is no longer in the file. |
--wait | Return once every instance is running, and healthy if it is checked (implies -d). |
Global flags
| Flag | Description |
|---|---|
-D, --debug | Trace every call to the daemon on stderr (or set $DICER_DEBUG). |
-r, --remote string | Daemon to talk to: a remote’s name, or an address (unix:///PATH or HOST:PORT) (default $DICER_REMOTE, then the current remote, then local). |
--request-timeout duration | Give up on a single call to the daemon after this long, e.g. 30s (0: never; streams such as logs -f and exec are not bounded). |