Answer the question
In order to leave comments, you need to log in
How can I write to the terminal from a docker container?
Let's say I have a program on my PC with which I write commands to the terminal, I want to run these commands from a docker container.
Is there such a possibility?
Answer the question
In order to leave comments, you need to log in
The container isolates the software running in it from the tail system. If you want to perform actions with files in the host system from the container, you will have to mount the directory with these files into the container.
Otherwise, nothing prevents you from connecting to the container and entering commands into its terminal.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question