Docker Network Nginx Resolver

前端 未结 6 1610
挽巷
挽巷 2020-11-30 23:49

I am trying to get rid of deprecated Docker links in my configuration. What\'s left is getting rid of those Bad Gateway nginx reverse proxy errors when I recrea

6条回答
  •  春和景丽
    2020-12-01 00:19

    I solved this problem with the following way:

    docker run --rm -d --network host --name "my_domain" nginx
    

    https://docs.docker.com/network/network-tutorial-host/

提交回复
热议问题