From 59dc0a79d75a7fead8fb0f71ae7faa21a8bb8372 Mon Sep 17 00:00:00 2001 From: Sah Date: Sat, 3 Jan 2015 19:40:41 +0800 Subject: [PATCH] Create README.md --- docker/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docker/README.md diff --git a/docker/README.md b/docker/README.md new file mode 100644 index 0000000..9ec99a2 --- /dev/null +++ b/docker/README.md @@ -0,0 +1,22 @@ +# Shadowsocks Dockerization + +## How to use this image + +Pull the image. + +```bash +docker pull leesah/shadowsocks +``` + +Create a data container and edit the configuration file. + +```bash +docker run --name shadowsocks-data leesah/shadowsocks /bin/true +docker run --rm --volumes-from shadowsocks-data leesah/shadowsocks vi /etc/shadowsocks.conf +``` + +Start the daemon container. + +```bash +docker run --name shadowsocks-app --detach --publish 58388:8388 --volumes-from shadowsocks-data leesah/shadowsocks +```