Create README.md
This commit is contained in:
parent
b9d6ca6e43
commit
59dc0a79d7
1 changed files with 22 additions and 0 deletions
22
docker/README.md
Normal file
22
docker/README.md
Normal file
|
@ -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
|
||||||
|
```
|
Loading…
Add table
Add a link
Reference in a new issue