How to save a Dynamic port in Docker for Windows?

0 votes

Is there any way to save and access to the dynamic port? I’m using docker for windows and not the DockerToolbox.

Sep 4, 2018 in Docker by Sophie may
• 9,870 points
49 views

1 answer to this question.

0 votes

The mapped ports can be accessed via the Docker API in the containers endpoint

The information is exposed in the cli via:

docker port CONTAINER

The same information can be pulled from docker inspect, which allows you to format the output how you want with --format 

docker inspect CONTAINER --format 
answered Sep 4, 2018 by Tyrion anex
• 8,280 points

Related Questions In Docker

0 votes
1 answer
0 votes
1 answer

How to get a browsable url from Docker-for-mac or Docker-for-Windows?

LoadBalancer will work on Docker-for-Mac and Docker-for-Windows ...READ MORE

answered Oct 10, 2018 in Docker by Tyrion anex
• 8,280 points
51 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,920 points
224 views
0 votes
1 answer

How to install telnet in Docker for Windows 10?

If you are trying to telnet in ...READ MORE

answered Aug 27, 2018 in Docker by Tyrion anex
• 8,280 points
632 views
0 votes
1 answer