docker-compose up for only certain containers

0 votes
I have numerous containers in a docker-compose.yml file. Three are for my programme (client, server, and database), while the others are for various development tools (e.g. psql, npm, manage.py, etc). All of them start when I execute docker-compose up, but I only want the three primary ones to start. I can start just those three using docker-compose up client because of the links I've supplied, but the output will only come from that one container. Is it possible to accomplish one of the following:

1. Tell docker-compose which containers docker-compose should start.
2. Use the docker-compose up client to get output from all linked containers.
Apr 18, 2022 in Docker by pranav
• 2,590 points
1,318 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Docker

+1 vote
5 answers

Set containers timezones by using docker compose.

version "2" services: serviceA: ...READ MORE

answered Jul 9, 2018 in Docker by Atul
• 10,240 points
23,474 views
0 votes
1 answer

Docker : multiples linked containers for each customers

Using Docker (specifically Docker Compose) linking containers ...READ MORE

answered Jul 11, 2018 in Docker by Kalgi
• 2,680 points
580 views
0 votes
1 answer

List only stopped Docker containers

docker ps --filter "status=exited" or docker ps -f "status=exited" or you ...READ MORE

answered Jul 26, 2018 in Docker by Kalgi
• 52,350 points
746 views
0 votes
1 answer

How to get docker-compose to always re-create containers from fresh images?

The containers are getting recreated to preserve ...READ MORE

answered Jul 27, 2018 in Docker by Kalgi
• 52,350 points
4,685 views
+1 vote
4 answers

Docker compose, running containers in net:host

Hey@Hannah, Check the compose file format specifications ...READ MORE

answered May 7, 2019 in Docker by Kishore
5,332 views
+1 vote
4 answers

Docker Compose wait for container X before starting Y

You can use the depends_on feature was ...READ MORE

answered May 7, 2019 in Docker by Kunal
11,173 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,100 points
2,687 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP