advancedTop 100 Interview Questions
What's the difference between `docker compose up` and `docker compose up -d`?
Without `-d`, Compose runs in the foreground, streaming all services' logs to the terminal and stopping them on Ctrl+C. With `-d` (detached), services start in the background and the terminal returns immediately, with `docker compose logs` used separately to view output.
This is a Pro chapter
Sign in, then upgrade to Pro or Power to unlock this and the full DevOps Mastery library.
What's the difference between `docker compose up` and `docker compose up -d`?