A
A
aalthab2020-06-19 11:14:33
Docker
aalthab, 2020-06-19 11:14:33

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

1 answer(s)
V
Vladimir Kuts, 2020-06-19
@aalthab

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 question

Ask a Question

731 491 924 answers to any question