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

前端 未结 6 1737
醉梦人生
醉梦人生 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条回答
  •  梦毁少年i
    2020-12-29 18:25

    You might want to try out dnsdock. Looks straight forward and easy(!) to set up. Have a look at http://blog.brunopaz.net/easy-discover-your-docker-containers-with-dnsdock/ and https://github.com/tonistiigi/dnsdock .

提交回复
热议问题