How can I start services with docker-compose start in foreground like docker start -a does?
The docker compose up
command already run all containers in foreground by default:
The
docker-compose up
command aggregates the output of each container (essentially runningdocker-compose logs -f
). When the command exits, all containers are stopped.
The only exception is when using the -d
flag:
Running
docker-compose up -d
starts the containers in the background and leaves them running.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With