docker 系列 - 修改容器的 DNS 服務器

# 查看容器的 dns 解析設置文件, 也能夠檢查docker 運行環境 DNS docker run busybox:latest cat /etc/resolv.confdocker # 爲容器 mybusybox 運行手動設置一個dns服務器, 並檢查是否生效 docker run --dns 10.0.0.2 --name mybusybox busybox:latest cat /etc
相關文章
相關標籤/搜索