git clone https://github.com/AFanSKyQs/ClashForLinux.git
cd ClashForLinux
bash StartRun.sh

##手动启动

/home/k8s/ClashForLinux/bin/clash-linux-amd64 -d /home/k8s/ClashForLinux/conf


export http_proxy=http://192.168.123.190:7890
export https_proxy=http://192.168.123.190:7890


mkdir -p /etc/systemd/system/docker.service.d

tee /etc/systemd/system/docker.service.d/http-proxy.conf << EOF
[Service]
Environment="HTTP_PROXY=http://192.168.123.190:7890"
Environment="HTTPS_PROXY=http://192.168.123.190:7890"
Environment="NO_PROXY=localhost,127.0.0.1"
EOF



mkdir -p /etc/systemd/system/containerd.service.d/
tee /etc/systemd/system/containerd.service.d/http-proxy.conf <<EOF
[Service]
Environment="HTTP_PROXY=http://192.168.123.190:7890"
Environment="HTTPS_PROXY=http://192.168.123.190:7890"
EOF

## 重启生效
systemctl daemon-reload && systemctl restart containerd