I am using Docker for Mac. I am running a nodejs based microservice in a Docker container. I want to test node microservice through the browser. How to get IP address of running docker container?
相关问题
- Docker task in Azure devops won't accept "$(pw
- Unable to run mariadb when mount volume
- Unspecified error (0x80004005) while running a Doc
- What would prevent code running in a Docker contai
- How to reload apache in php-apache docker containe
You can not access the docker's IP from outside of that host machine. If your browser is on another machine better to map the host port to container port by passing
-p 8080:8080
to run command.Passing
-p
you can map host port to container port and a proxy is set to forward all traffix for said host port to designated container port.