How to make Docker container accessible to other network machines through IP?

前端 未结 3 1830
终归单人心
终归单人心 2020-12-31 21:24

I need to create some docker containers that must be accessed by other computers at the same network.

Problem is that when I create the container, Docker gets IP ad

3条回答
  •  自闭症患者
    2020-12-31 22:10

    You have to create a bridge on your host and assign that bridge to the container. This may help you: https://jpetazzo.github.io/2013/10/16/configure-docker-bridge-network/

提交回复
热议问题