Answer the question
In order to leave comments, you need to log in
How to find out the IP to connect to docker via ssh?
How to ssh into docker from host and remote machine via ssh?
I'm trying to do everything right, but I'm getting an error:
PS path> docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ce
172.20.0.3
PS path> ssh [email protected]
ssh: connect to host 172.20.0.3 port 22: Connection timed out
PS path> ssh [email protected] -p 52743
ssh_exchange_identification: Connection closed by remote host
PS path>
Answer the question
In order to leave comments, you need to log in
You are doing something wrong... Why do you need to connect to the docker container via ssh?
What is wrong with this option?
docker exec -ti <имя контейнера> bash
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question