Skip to content

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

FlagDescription
-d, --detachRun in the background: return once the instances have started.
--force-recreateRecreate every instance, even those whose definition has not changed.
--no-recreateLeave instances that already exist as they are, even if their definition has changed.
--pull stringWhen to pull images: missing, always or never. Default: missing.
--remove-orphansDelete the project’s instances whose service is no longer in the file.
--waitReturn once every instance is running, and healthy if it is checked (implies -d).

Global flags

FlagDescription
-D, --debugTrace every call to the daemon on stderr (or set $DICER_DEBUG).
-r, --remote stringDaemon 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 durationGive 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).