How to change “default” docker-machine's dns settings

前端 未结 2 649
时光说笑
时光说笑 2020-12-25 11:38

I know how to create a new docker-machine with dns settings

docker-machine create -d virtualbox --engine-opt dns=8.8.8.8 my_machine

But the

2条回答
  •  伪装坚强ぢ
    2020-12-25 12:10

    On Windows 10 docker's gui give some facilities.

    Just right click on docker's icon in the tray bar and select "Settings" item.

    Then, on the Docker's window, select the "Network" section and change the DNS option from "Automatic" to "Fixed" and hit "Apply". Docker will restart itself after that. I putted the Google's DNS (8.8.8.8) and it worked fine to me.

    Hope it helps.

提交回复
热议问题