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
k8s 安装 proxy
原创
©著作权归作者所有:来自51CTO博客作者go工程师的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
android flutterview
今天尝试在Android 工程下的Flutter dart 代码里使用WebView 控件,来打开一个web页面但是首次结果是页面白屏,运行错误如题:大概意思是webview插件没有注册。我按照百度出来的方法,一一对照第一步,在pubspec.yaml文件里添加了 flutter 依赖dependencies: flutter: sd
android flutterview flutter webview FlutterActivity FlutterEngine