How to reach docker containers by name instead of IP address?

前端 未结 6 1746
醉梦人生
醉梦人生 2020-12-29 17:44

Is there a way I can reach my docker containers using names instead of ip addresses?

I\'ve heard of pipework and I\'ve seen some dns and hostname type options for do

6条回答
  •  梦谈多话
    2020-12-29 18:47

    If you want out of the box solution, you might want to check for example Kontena. It comes with network overlay technology from Weave and this technology is used to create virtual private LAN networks between services. Thanks to that every service/container can be reached by service_name.kontena.local.

提交回复
热议问题