> 技术文档 > 如何在 ubuntu 上使用 Clash 与 docker 开启代理拉起

如何在 ubuntu 上使用 Clash 与 docker 开启代理拉起


如何在 ubuntu 上使用 Clash

https://github.com/doreamon-design/clash/releases
上面是clash 的地址clash_2.0.24_linux_386.tar.gz下载 386 的 如果你的电脑是intertar -xzvf clash_2.0.24_linux_386.tar.gz启动 ./clash然后会在电脑上生成一个config的文件/home/xxx/.config/clash在之后 在win电脑上 找到Country.mmdb和config.yaml 进行替换https://clash.razord.top/#/proxies进入这个网址是修改的

docker 使用代理

sudo mkdir -p /etc/systemd/system/docker.service.dsudo vim /etc/systemd/system/docker.service.d/http-proxy.conf将下面的进行替换或者添加[Service]Environment=\"HTTP_PROXY=http://127.0.0.1:7890\"Environment=\"HTTPS_PROXY=http://127.0.0.1:7890\"Environment=\"NO_PROXY=localhost,127.0.0.1\"sudo systemctl daemon-reloadsudo systemctl restart docker