容器使用自定义dns

$ docker run --dns=127.0.0.1 my/container cat /etc/resolv.conf
nameserver 127.0.0.1

results matching ""

    No results matching ""