Files
shadowsocks-libev/docker/ubuntu
Analyser 2a0f28bcfa Add missed package ca-certificates, automake, libmbedtls-dev.
fix these errors:

- ca-certificates missed
  fatal: unable to access
'https://github.com/shadowsocks/shadowsocks-libev.git/': Problem with
the SSL CA cert (path? access rights?)

- automake missed
  Can't exec "aclocal": No such file or directory at
/usr/share/autoconf/Autom4te/FileUtils.pm line 326.
  autoreconf: failed to run aclocal: No such file or directory
  
- libmbedtls-dev
  checking for mbedtls_cipher_setup in -lmbedcrypto... no
  configure: error: mbed TLS libraries not found.
2017-08-07 16:48:59 -07:00
..
2016-01-20 20:51:59 +08:00
2016-08-23 17:31:08 +08:00

Shadowsocks Dockerized

About this image

This image is built to ease the deployment of the Shadowsocks server daemon with Docker.

For Shadowsocks clients, you want to visit http://shadowsocks.org/en/download/clients.html

What is Shadowsocks

A secure socks5 proxy designed to protect your Internet traffic.

See http://shadowsocks.org/

What is Docker

An open platform for distributed applications for developers and sysadmins.

See https://www.docker.com/

How to use this image

Start the daemon for the first time

$ docker run --name shadowsocks-app --detach --publish 58338:8338 shadowsocks/shadowsocks-libev -k "5ecret!"

To publish UDP port for DNS tunnelling, run

$ docker run --name shadowsocks-app --detach --publish 58338:8338 --publish 58338:8338/udp shadowsocks/shadowsocks-libev -k "5ecret!"

To see all supported arguments, run

$ docker run --rm shadowsocks/shadowsocks-libev --help

To try the bleeding edge version of Shadowsocks, run with an unstable tag

$ docker run --name shadowsocks-app --detach --publish 58338:8338 shadowsocks/shadowsocks-libev:unstable -k "5ecret!"

Stop the daemon

$ docker stop shadowsocks-app

Start a stopped daemon

$ docker start shadowsocks-app

Upgrade

Simply run a docker pull to upgrade the image.

$ docker pull shadowsocks/shadowsocks-libev

Use in CoreOS

COMING SOON

Use with fig

COMING SOON

Limitations

JSON Configuration File

This image doesn't support the JSON configuration at the moment. But I do plan to add the support in the future. So please stay tuned.

Specifying Hostname & Port

Docker containers don't have the power to specify on what hostname or port of the host should the service listen to. These have to be specified using the --publish argument of docker run.

See Docker run reference for more details.

References