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,072 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
22,782 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
390 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,360 points
612 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,360 points
4,411 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
4,945 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
10,568 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,090 points
2,472 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