Total Pageviews

Friday 24 June 2016

shadowsocks-libev的docker版- docker-shadowsocks-libev

docker pull vimagick/shadowsocks-libev
然后安装docker-compose。
(curl -"https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

chmod 755 /usr/local/bin/docker-compose

from https://docs.docker.com/compose/install/#install-compose)

mkdir shadowsocks-libev-docker (这个目录不建立也可以.建立是为了方便管理)
cd shadowsocks-libev-docker
nano docker-compose.yml
(docker-compose.yml文件的内容如下:
server:
  image: vimagick/shadowsocks-libev
  ports:
    - "8488:8388"
  environment:
    - METHOD=aes-256-cfb
    - PASSWORD=你设置的密码
  restart: always )
然后,运行:
docker-compose up -d
这样,服务器端就搭建好了。

ss客户端:填写ss服务器端的端口时,应写8488。

项目地址:
https://hub.docker.com/r/vimagick/shadowsocks-libev/ (不过此页面里的docker-compose.yml
文件少了“- METHOD= ”这一行。须加上之!在这个地址
https://hub.docker.com/r/vimagick/shadowsocks/里,docker-compose.yml文件里有“- METHOD= ”这一行。)
https://github.com/vimagick/dockerfiles/tree/master/shadowsocks