LinuxCommandLibrary

docker-compose-up

start compose services

TLDR

Start services

$ docker compose up
copy
Start in detached mode
$ docker compose up -d
copy
Build images before starting
$ docker compose up --build
copy
Start specific services
$ docker compose up [service1] [service2]
copy
Force recreate containers
$ docker compose up --force-recreate
copy
Scale a service
$ docker compose up --scale [service]=[3]
copy
Remove orphans
$ docker compose up --remove-orphans
copy

SYNOPSIS

docker compose up [options] [service...]

DESCRIPTION

docker compose up builds, creates, starts, and attaches to containers for services defined in docker-compose.yml. Creates networks and volumes as needed.

PARAMETERS

-d, --detach

Run in background.
--build
Build images before starting.
--force-recreate
Recreate containers even if unchanged.
--no-deps
Don't start linked services.
--scale service=num
Scale service to num instances.
--remove-orphans
Remove containers not defined in Compose file.
--wait
Wait for services to be healthy.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Raspberry Pi 5 8GB

Raspberry Pi 5 8GB

$134.50
GMKtec Gaming PC, K11 AMD Ryzen 9 8945HS, 32GB DDR5 RAM 1TB Mini PC Desktop Computer, Oculink, Dual NIC 2.5GbE LAN, HDMI/DisplayPort/USB4*2

GMKtec Gaming PC, K11 AMD Ryzen 9 8945HS, 32GB DDR5 RAM 1TB Mini PC Desktop Computer, Oculink, Dual NIC 2.5GbE LAN, HDMI/DisplayPort/USB4*2

$739.99
KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

$16.99
Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community

Raspberry Pi 5 8GB

Raspberry Pi 5 8GB

$134.50
nuphy Air75 V2 Portable 75% Mechanical Keyboard,Wireless Keyboard

nuphy Air75 V2 Portable 75% Mechanical Keyboard,Wireless Keyboard

$129.95
BOSGAME Mini PC N95, Intel 12th Mini Computers| 16GB DDR4 RAM| 512GB M.2 2280 SSD| 4K 60HZ Triple Displays by Dual HDMI+Type-C, 6W TDP Quiet Mini PC, WIFI5, BT 5.0 Office

BOSGAME Mini PC N95, Intel 12th Mini Computers| 16GB DDR4 RAM| 512GB M.2 2280 SSD| 4K 60HZ Triple Displays by Dual HDMI+Type-C, 6W TDP Quiet Mini PC, WIFI5, BT 5.0 Office

$239.99