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
• 10,610 points
605 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,700 points

Related Questions In Docker

0 votes
1 answer
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,700 points
1,135 views
0 votes
3 answers

How to enable docker remote API in Docker for Windows?

Try these steps- Navigate to /lib/systemd/system in your ...READ MORE

answered Aug 25, 2020 in Docker by Pistle
• 300 points
7,672 views
+2 votes
1 answer
+2 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
• 58,090 points
2,472 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 28, 2018 in Docker by Tyrion anex
• 8,700 points
3,154 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP