Answer the question
In order to leave comments, you need to log in
How to access the Docker container console by server ip?
Good afternoon. There is a cloud server, it has access via ssh. The server has a docker container.
Now, to enter the docker container console, I do this:
1. I go to the north via ssh: for example, ssh [email protected]
2. I run docker exec -it deepo /bin/bash
3. I find myself in the docker console.
The question is how to forward ssh from docker to the server ip so that I can connect to the docker console, for example, via ssh [email protected] - p 222
The port may be different than 22 like the server, but for example 222
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question