A Docker image that contains shadowsocks-libev service.
The image is pretty small(~12MB) because it uses Alpine as the base image.
Before you build the image, you can modify the environment variable SHADOWSOCKS_VERSION
in the Dockerfile to specify the version of shadowsocks-libev that you want, then run the follwing command to build it.
docker build \
-t er1cst/shadowsocks-libev:v3.0.4 \
--no-cache \
.
Because 8388 is the port that the container exposes, when you start shadowsocks-libev, you should publish port 8388 using -p
parameter in docker run
. You should also specify port number in ss-server
.
Then run the follwing command, which creates an instance of shadowsocks-libev server.
docker run \
-d \
-p 12849:8388/tcp \
-p 12849:8388/udp \
er1cst/shadowsocks-libev:v3.0.4 \
ss-server \
-p 8388 \
-k 'ZG5B4GqrXS8avcc2' \
-u \
-m 'chacha20-ietf'