Docker 配置Shadowsocks-go

CentOS7 Shadowsocks-go

1
2
3
4
5
6
7
8
9
10
yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-selinux \
docker-engine-selinux \
docker-engine
1
yum install -y yum-utils device-mapper-persistent-data lvm2
1
2
3
yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
1
2
3
yum list docker-ce --showduplicates | sort -r

yum install docker-ce-18.06.1.ce

启动 docker

1
2
3
systemctl enable docker

systemctl start docker

安装shadowsocks-go

1
docker pull cloverzrg/shadowsocks-go

获取ip

1
2
3
IP_ADDR=$(ip a|grep "inet "|awk -F\  '{print $2}'|awk '{print $1}'|grep -v '127.*'|grep -v '172.*'|awk -F/ '{print $1}')

echo $IP_ADDR
1
docker run -d --name shadowsocks-go -p $IP_ADDR:443:8373 -e PASSWORD=meiyoumima -e METHOD=chacha20 --restart always  cloverzrg/shadowsocks-go

参考

shadowsocks-go-docker

×

纯属好玩

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

文章目录
  1. 1. CentOS7 Shadowsocks-go
    1. 1.1. 参考
,