一般代理
http_proxy=http://192.168.137.1:7890
https_proxy=http://192.168.137.1:7890
socks5代理
http_proxy=socks5://127.0.0.1:6633
https_proxy=socks5://127.0.0.1:6633
http_proxy=http://192.168.137.1:7890
https_proxy=http://192.168.137.1:7890
no_proxy=127.0.0.1,localhost,192.168.0.0/16,172.100.0.0/24,cn.archive.ubuntu.com,ubuntu02.rolkey.com
{
"proxies": {
"default": {
"httpProxy": "http://192.168.137.1:7890",
"httpsProxy": "http://192.168.137.1:7890",
"noProxy": "127.0.0.1,192.168.0.0/16,172.100.0.0/24,localhost,cn.archive.ubuntu.com,mirrors.tuna.tsinghua.edu.cn,deb.debian.org,ftp.debian.org,security.debian.org"
}
}
}
- /etc/docker/daemon.json ,proxies两段可以拷贝切换
{
"registry-mirrors": [
"https://dockerproxy.com/",
"https://hub-mirror.c.163.com/"
],
"proxies": {
"http-proxy": "socks5://127.0.0.1:6633",
"https-proxy": "socks5://127.0.0.1:6633",
"no-proxy": "127.0.0.1,localhost,192.168.0.0/16,172.100.0.0/24,registry.docker-cn.com,cn.archive.ubuntu.com,mirrors.tuna.tsinghua.edu.cn,deb.debian.org,ftp.debian.org,security.debian.org"
},
"proxies": {
"http-proxy": "http://192.168.137.1:7890",
"https-proxy": "http://192.168.137.1:7890",
"no-proxy": "127.0.0.1,localhost,192.168.0.0/16,172.100.0.0/24,registry.docker-cn.com,cn.archive.ubuntu.com,mirrors.tuna.tsinghua.edu.cn,deb.debian.org,ftp.debian.org,security.debian.org"
},
"runtimes": {
"nvidia": {
"args": [],
"path": "nvidia-container-runtime"
}
}
}