Skip to content

er1cst/docker-shadowsocks-libev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

docker-shadowsocks-libev

A Docker image that contains shadowsocks-libev service.

The image is pretty small(~12MB) because it uses Alpine as the base image.

How to build the 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 \
    .

how to use this image

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'

About

Run a Shadowsocks-libev instance in a Docker container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published