docker安装配置ss最新
使用docker安装配置 SS
1. Install Docker
curl -fsSl https://get.docker.com | sh
2. Create configuration file
1 | mkdir -p /etc/shadowsocks-rust |
3. Run container
1 | docker run -d -p 9000:9000 -p 9000:9000/udp --name ss-rust --restart=always -v /etc/shadowsocks-rust:/etc/shadowsocks-rust teddysun/shadowsocks-rust |
4. Generate SS URL
docker exec -it ss-rust ssurl --encode /etc/shadowsocks-rust/config.json
ss://YWVzLTI1Ni1nY206MTIzLnNodWk@0.0.0.0:9000
replace 0.0.0.0
with server public IP
, for example
ss://YWVzLTI1Ni1nY206MTIzLnNodWk@23.112.227.162:9000
5. Enable BBR(optional)
1 | wget -N --no-check-certificate "https://github.000060000.xyz/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh |
Choose 1
to install official BBR kernel. After reboot, choose 22
to optimize and enable bbr&fq.
- 本文标题:docker安装配置ss最新
- 本文作者:yichen
- 本文链接:https://yc6.cool/2022/04/17/docker安装配置ss最新/
- 版权声明:本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明出处!