53

Docker容器之内网独立IP访问-10683404

 5 years ago
source link: http://blog.51cto.com/10693404/2157142
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Docker容器之内网独立IP访问实验介绍今天在学习Docker容器的时候,在虚拟机中创建并开启了一个nginx的container,然后通过端口映射的方法,即将container的80端口映射到虚拟机的80端口,然后在宿主机上通过访问虚拟机的IP从而访问到Docker容器的Nginx服务。然后开始思考,能否通过分配给container一个独立的IP,然后在宿主机上访问这个独立IP从而访问Ngin

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK