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 run
Use --format option to get only the IP address instead whole container info:
--format
sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}'