Answer the question
In order to leave comments, you need to log in
How to find the ip address of a docker container?
Hello everyone, I'm new to Docker, so the question may seem silly, but nevertheless, on Windows 10, how can I find out the address where the Docker container is running?
those. the address that you need to enter in the address bar of the browser to work with the container
Answer the question
In order to leave comments, you need to log in
When you start the container, specify the ports: which port on the computer will be connected to which port in the container.
For example, the nginx container listens on port 80. And you want it to be on port 8080 on the host, then something like this: docker run -d -p 8080:80 nginx
Openhttp://localhost:8080
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question