I can't get Docker containers to access the internet?

前端 未结 2 1333
轻奢々
轻奢々 2020-12-24 02:29

I\'m my wits end with this, I\'ve combed every single google result and nothing helps.

I\'m completely unable to get docker containers to access the internet. IP for

相关标签:
2条回答
  • 2020-12-24 03:08

    I was facing the same problem. So, to solve that issue I've started the container using the argument --net=host, it worked perfectly for me.

    Here goes the full statement

    sudo docker start --net=host -it --name ex_ngninx ubuntu
    
    0 讨论(0)
  • 2020-12-24 03:11

    Resolved. I followed these instructions: commented out dns=dnsmasq line in NetworkManager.conf

    0 讨论(0)
提交回复
热议问题