docker compose up | Docker-compose remove container
CreateandstartcontainersUsage$dockercomposeup[OPTIONS][SERVICE...]Refertotheoptionssection[1]foranoverviewofavailableOPTIONS[2]forthiscommand.DescriptionBuilds,(re)creates,starts,andattachestocontainersforaservice.Unlesstheyarealreadyrunning,thiscommandalsostartsanylinkedservices.Thedockercomposeupcommandaggregatestheoutputofeachcontainer(likedockercomposelogs--followdoes).Onecanoptionallyselectasubsetofservicestoattachtousing--attachflag,orexcludesomeservicesusing--no-attachtopreventoutputt...
Create and start containers
Usage $ docker compose up [OPTIONS] [SERVICE...]Refer to the options section[1] for an overview of available OPTIONS[2] for this command.
DescriptionBuilds, (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 t...