This Dockerfile builds an image with the Python implementation of shadowsocks. Based on Ubuntu 16.04 image.
This image uses ENTRYPOINT to run the containers as an executable.
docker run -d -p 1984:1984 oddrationale/docker-shadowsocks -s 0.0.0.0 -p 1984 -k $SSPASSWORD -m aes-256-cfb
You can configure the service to run on a port of your choice. Just make sure the port number given to Docker is the same as the one given to shadowsocks. Also, it is highly recommended that you store the shadowsocks password in an environment variable as shown above. This way the password will not show in plain text when you run docker ps
.
For more command line options, refer to the shadowsocks documentation