Update README.md
This commit is contained in:
parent
a46176b3e7
commit
92f88c9702
1 changed files with 6 additions and 6 deletions
|
@ -19,32 +19,32 @@ See https://www.docker.com/
|
||||||
Pull the image.
|
Pull the image.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker pull leesah/shadowsocks
|
$ docker pull leesah/shadowsocks
|
||||||
```
|
```
|
||||||
|
|
||||||
Create a data container and edit the configuration file.
|
Create a data container and edit the configuration file.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --name shadowsocks-data leesah/shadowsocks /bin/true
|
$ docker run --name shadowsocks-data leesah/shadowsocks /bin/true
|
||||||
docker run --interactive --tty --rm --volumes-from shadowsocks-data leesah/shadowsocks vi /etc/shadowsocks/shadowsocks.json
|
$ docker run --interactive --tty --rm --volumes-from shadowsocks-data leesah/shadowsocks vi /etc/shadowsocks/shadowsocks.json
|
||||||
```
|
```
|
||||||
|
|
||||||
Start the daemon container.
|
Start the daemon container.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --name shadowsocks-app --detach --publish 58388:8388 --volumes-from shadowsocks-data leesah/shadowsocks
|
$ docker run --name shadowsocks-app --detach --publish 58388:8388 --volumes-from shadowsocks-data leesah/shadowsocks
|
||||||
```
|
```
|
||||||
|
|
||||||
### Stop the daemon
|
### Stop the daemon
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker stop shadowsocks-app
|
$ docker stop shadowsocks-app
|
||||||
```
|
```
|
||||||
|
|
||||||
### Start a stopped daemon
|
### Start a stopped daemon
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker start shadowsocks-app
|
$ docker start shadowsocks-app
|
||||||
```
|
```
|
||||||
|
|
||||||
### Upgrade
|
### Upgrade
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue