docker image to run a shadowsocks server
If you want to use a preset configration instead of a default, you can set the environment variable, eg
To create the image guolin/shadowsocks, execute the following command on the guolin/shadowsocks folder:
docker build -t guolin/shadowsocks .
Run the following command to start shadowsocks:
docker run -d -p 8838:8838 guolin/shadowsocks
The first time that you run your container, a default password(password) will be set. You can get the password, check the logs of the container by running:
docker logs <CONTAINER_ID>
You will see an output like the following:
========================================================================
You can now connect to this ShadowSocks server:"
server: 0.0.0.0 port: 8838 password: password
Please remember the password!!
========================================================================
Done!
====================
shadowsocks 主要是用于翻墙。 我的实际使用方法是直接在tutum上创建一个digitalocean的docker主机,然后运行这个image,通过ENV的方式进行基本的配置,然后就可以轻松翻墙了。
通过环境变量的方式实现
一般情况只需要改密码就可以了。
通过日志可以查看具体的配置情况。
docker run -d -p 8838:8838 -e SS_PASSWORD=[替换成自己的密码] guolin/shadowsocks
Content type
Image
Digest
sha256:8ff67d40e…
Size
119.6 MB
Last updated
over 10 years ago
docker pull guolin/shadowsocks