Skip to content

hycinth22/shadowsocks-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shadowsocks-docker

A docker image of breakwa11/shadowsocks, based on Ubuntu 14.04

Environment Varible Options

  • EXT_PARMS: shadowsocks Startup parameters.
    • -d shadowsocks directory, default: /shadowsocks
    • -c <conf_path> shadowsocks configuration file, default: /etc/shadowsocks.json
    • -p shadowsocks port(in docker container), default: 34780
    • -k shadowsocks password, default: 123456
    • -m shadowsocks encrypt method, default: rc4-md5
    • -t shadowsocks timeout seconds, default: 300
    • -o shadowsocks obfs option, default: plain
    • -w shadowsocks number of workers, available on Unix/Linux, default: 1

If you want to use chacha20 encrypt method, please install libsodium

Besides, You can use your own configuration file via mounting Configuration File Path: /etc/shadowsocks.json

Getting Started

  1. Change to work directory

    cd /path/to/the/repo

  2. Clone the repo

    git clone https://github.com/pastral1024/shadowsocks-docker .

  3. Build the image

    docker build --tag ik:ssr /path/to/the/repo

  4. Create & Start a container

Default Configuration:

docker run -it --name ssr ik:ssr

Custom Configuration:

docker run -it --name ssr -e "EXT_PARMS=-p yourPort -k youPassWord -m YourMethod" ik:ssr

Custom Configuration File:

docker run -it --name ssr -v "/path/to/your/configuration/file:/etc/shadowsocks.json" ik:ssr