Reputation: 14736
Environment: VS2019 on Windows 10
With this I ran docker ps and got the following output
I now run docker inspect 9e1911ce311a
and get the following output
Problem:
Since the docker ip here in this case is 172.20.0.3, why does https://172.20.0.3:32776 result in
Upvotes: 0
Views: 929
Reputation: 2246
URL: http://localhost:32776/
URL: https://172.20.0.3/
docker -it <container id> bash
curl https://172.20.0.3/
When working on docker there are always 2 networks host machine network docker's own private network
docker network ls
For a port mapping --ports <left side>:<right side>
if you are debugging from withing docker container you'll have to use port on the right side of the mappings. If you are accessing from host machine use the one of the left hand side.
Upvotes: 1