eeechoo / blogs

个人博客
0 stars 0 forks source link

kubernetes #31

Open eeechoo opened 5 years ago

eeechoo commented 5 years ago

图文并茂,浅显易懂 http://www.dockone.io/article/932

eeechoo commented 5 years ago

网络这里讲的很模糊 https://yeasy.gitbooks.io/docker_practice/content/

$ docker container ls -l CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES bc533791f3f5 training/webapp:latest python app.py 5 seconds ago Up 2 seconds 0.0.0.0:49155->5000/tcp nostalgic_morse 使用 docker container ls 可以看到,本地主机的 49155 被映射到了容器的 5000 端口。此时访问本机的 49155 端口即可访问容器内 web 应用提供的界面。

eeechoo commented 5 years ago

https://docs.docker.com/network/network-tutorial-host/

eeechoo commented 5 years ago

docker 网络