Answer the question
In order to leave comments, you need to log in
How to run terminal via docker-compose up?
There is a docker-compose run bash command that will start a specific service described in docker-compose.yml with a terminal, but it's just one service. I need to start all my services via docker-compose up and one of these services should start with the ability to write commands to the terminal.
Answer the question
In order to leave comments, you need to log in
Well, add your services to docker-compose.yml - yes, run ... The
necessary service - let it write to the terminal
You can view it using docker logs -f <container name where the service writes to the terminal>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question