LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

docker-compose-start

start existing Compose service containers without recreating them

TLDR

Start all services that already have containers
$ docker compose start
copy
Start named services only
$ docker compose start [web] [db]
copy
Wait until services are running or healthy
$ docker compose start --wait
copy
Wait, with a timeout in seconds
$ docker compose start --wait --wait-timeout [60]
copy
Dry-run the start (global Compose flag)
$ docker compose --dry-run start
copy

SYNOPSIS

docker compose start [options] [SERVICE...]

DESCRIPTION

docker compose start starts existing containers for one or more services in a Compose project. It does not create missing containers; use docker compose up (or create then start) if the service has never been created.Stopped containers keep their filesystem, networks, and volumes. This is the counterpart to docker compose stop, which pauses without removing. docker compose down removes containers; start cannot bring those back.

PARAMETERS

--wait

Wait until services are running or healthy. Implies detached mode.
--wait-timeout seconds
Maximum seconds to wait when --wait is set.

INSTALL

sudo apt install docker-compose
copy
sudo dnf install docker-compose
copy
sudo pacman -S docker-compose
copy
sudo apk add docker-cli-compose
copy
sudo zypper install docker-compose
copy
brew install docker-compose
copy
nix profile install nixpkgs#docker-compose
copy

CAVEATS

Services without an existing container are skipped or error depending on Compose version; they are not created. Health wait needs a healthcheck in the Compose file. Project selection still uses -f, -p, and the working directory as with other Compose commands.

HISTORY

The standalone `docker-compose start` verb moved to the Compose V2 plugin invoked as docker compose start.

SEE ALSO

RESOURCES

Copied to clipboard
Kai