Docker How to configure ports for Containers ?

preview_player
Показать описание

In this video, we will learn how to use port configuration for the containers so we can access them by their port number from our computer!
This video is one of the more Docker videos to come!

#Docker #Ports #Networking

Connect with me with:

🔥 Comment below if you want to see more videos in that style

👍 Subscribe to start your Python Developer / DevOps Engineer journey here:

Links:
How to get Telnet on Windows?

My Personal website:

Timeline of the video:
00:00 - 03:35 - The problem with accessing containers directly by their exposed port
03:36 - 06:20 - How to solve this problem with Port binding?
06:21 - 10:19 - Practice in the Terminal
Рекомендации по теме
Комментарии
Автор

Thumbs up for seeing more Docker content on this channel

jimshapedcoding
Автор

thanks for the video. I note that docker is doing NAT to a private ip range inside the containers, and no issues with access from local host device (I am testing on old win10 pc in this case). The question would be accessing from another device in the LAN? Device firewall is off, and can not access the published port of the container. I am thinking that the binding is limited to localhost? Any clues on allowing external access to the published ports?

RoamingWayne
Автор

Nice video Jim! Expected to see more videos on docker and flask new version.

sriteja
Автор

still no solution on my side.

stopped and deleted the initial container, created a new container with the old porting [80:80];
instead of the new container, visiting localhost still outputs my previously deleted container.

a frustrating nightmare.

el-jay_