docker compose up
Create and start containers
Usage link
docker compose up [OPTIONS] [SERVICE...]
Description link
Builds, (re)creates, starts, and attaches to containers for a service.
Unless they are already running, this command also starts any linked services.
The
docker compose up
command aggregates the output of each container (like
docker compose logs --follow
does).
One can optionally select a subset of services to attach to using
--attach
flag, or exclude some services using
--no-attach
to prevent output to be flooded by some verbose services.
When the command exits, all containers are stopped. Running
docker compose up --detach
starts the containers in the
background and leaves them running.
If there are existing containers for a service, and the service’s configuration or image was changed after the