docker 配置 socket 代理

vi ~/.docker/config.json

{
    "proxies":{
        "default":{
            "httpProxy":"socks5h://192.168.36.106:7890",
            "httpsProxy":"socks5h://192.168.36.106:7890",
            "noProxy":"repo.openeuler.org"
        }
    }
}

 

via:https://stackoverflow.com/questions/61590317/use-socks5-proxy-from-host-for-docker-build

posted @ 2022-08-17 12:11  Nihaorz  阅读(994)  评论(0编辑  收藏  举报