V
V
vbNoName2018-05-06 18:11:10
Java
vbNoName, 2018-05-06 18:11:10

How to disconnect from a docker container?

There is a docker container that runs a console java application. I want to connect to the console I/O of this application. I am using docker attach. How can I now disconnect from it without shutting down the application itself? If you press ctrl+c then it stops working accordingly. The documentation says to use ctrl+p, ctrl+q but that doesn't work either, ^p is simply printed to the console and that's it. If there is another way to connect to console input / output, then tell me

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
planc, 2018-05-06
@planc

container with -it flag running ?
https://stackoverflow.com/questions/19688314/how-d...
if the log is still in a file, then you can run bash in the container and read
docker exec -it container bash
# tail -f log file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question