Eljah
Eljah

Reputation: 5155

How to make `docker-compose up $container_name` to attache not only to $container_name but to all containers it depends on?

When I start a specific container with

docker-compose up $container_name

docker-compose starts this particular container, but attaches the log output for the $container_name only. How I can force it to output all the output for all the containers that $container_name depends on and which are started by the above command? I'd like to see the output of all containers that are started like by

docker-compose up

but with only the said and dependent containers being run.

Upvotes: 0

Views: 1162

Answers (1)

Ali Tou
Ali Tou

Reputation: 2205

You can use --attach-dependencies option:

docker-compose up --attach-dependencies foo

Upvotes: 1

Related Questions