How do I set hostname in docker-compose?

后端 未结 8 2213
清酒与你
清酒与你 2020-11-29 18:11

In my docker-compose.yml file, I have the following. However the container does not pick up the hostname value. Any ideas?

dns:
  image: phensle         


        
8条回答
  •  北海茫月
    2020-11-29 19:00

    This issue is still open here: https://github.com/docker/compose/issues/2925

    You can set hostname but it is not reachable from other containers. So it is mostly useless.

提交回复
热议问题