Intermediate Docker & Containers
Q45 / 100

What is the purpose of "docker-compose up -d" versus "docker-compose up"?

Correct! Well done.

Incorrect.

The correct answer is B) "docker-compose up" runs services in the foreground, streaming combined logs to the terminal, while "-d" runs them in detached/background mode

B

Correct Answer

"docker-compose up" runs services in the foreground, streaming combined logs to the terminal, while "-d" runs them in detached/background mode

Explanation

The "-d" flag for Compose runs containers in the background (detached), similar to "docker run -d", freeing up the terminal.

Progress
45/100