N
N
Nikita072021-03-24 09:49:37
Docker
Nikita07, 2021-03-24 09:49:37

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

1 answer(s)
S
Sergey Sokolov, 2021-03-24
@Nikita07

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 question

Ask a Question

731 491 924 answers to any question