Access to container by his hostname from host-machine

后端 未结 2 1180
慢半拍i
慢半拍i 2020-12-22 03:46

I have some docker containers which united single dockers overlay network. Under this network every containers access by hostname (of container). But I cant access to contai

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-22 04:26

    You can simply add 127.0.0.1 to your hosts file (on your local machine

提交回复
热议问题