shadowsocks_install/docker/shadowsocks-r
Teddysun a5c3211a84
Update comments
Signed-off-by: Teddysun <i@teddysun.com>
2019-01-13 23:55:13 +09:00
..
alpine Update comments 2019-01-13 23:55:13 +09:00
.dockerignore Update comments 2018-06-30 12:01:18 +09:00
config_sample.json Added shadowsocks-r docker image 2018-06-23 14:54:49 +09:00
Dockerfile Update comments 2019-01-13 23:55:13 +09:00
README.md Update README.md 2018-08-11 17:24:17 +09:00

ShadowsocksR Docker Image by Teddysun

shadowsocksr is a lightweight secured socks5 proxy for embedded devices and low end boxes. It is a port of shadowsocks created by @clowwindy maintained by @breakwa11 and @Akkariiin.

Docker images are built for quick deployment in various computing cloud providers. For more information on docker and containerization technologies, refer to official document.

Prepare the host

If you need to install docker by yourself, follow the official installation guide.

Pull the image

$ docker pull teddysun/shadowsocks-r

or pull image based alpine

$ docker pull teddysun/shadowsocks-r:alpine

This pulls the latest release of shadowsocks-r.

It can be found at Docker Hub.

Start a container

You must create a configuration file /etc/shadowsocks-r/config.json in host at first, and sample:

{
    "server":"0.0.0.0",
    "server_ipv6":"::",
    "server_port":9000,
    "local_address":"127.0.0.1",
    "local_port":1080,
    "password":"password0",
    "timeout":120,
    "method":"aes-256-cfb",
    "protocol":"origin",
    "protocol_param":"",
    "obfs":"plain",
    "obfs_param":"",
    "redirect":"",
    "dns_ipv6":false,
    "fast_open":true,
    "workers":1
}

This container with sample configuration /etc/shadowsocks-r/config.json

There is an example to start a container that listens on 9000 (both TCP and UDP):

$ docker run -d -p 9000:9000 -p 9000:9000/udp --name ssr -v /etc/shadowsocks-r:/etc/shadowsocks-r teddysun/shadowsocks-r

There is an example to start a container based alpine that listens on 9000 (both TCP and UDP):

$ docker run -d -p 9000:9000 -p 9000:9000/udp --name ssr -v /etc/shadowsocks-r:/etc/shadowsocks-r teddysun/shadowsocks-r:alpine

Note: The port number must be same as configuration.