expose port.

pull/399/head
SmallTianTian 2019-04-15 11:11:58 +08:00 committed by GitHub
parent 0370871867
commit 44e504c604
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -11,13 +11,13 @@
`6379`
```bash
$ docker run --name some-redis -d redis
$ docker run --name some-redis -d -p 6379:6379 redis
```
[](https://redis.io/topics/persistence)。
```bash
$ docker run --name some-redis -d redis redis-server --appendonly yes
$ docker run --name some-redis -d -p 6379:6379 redis redis-server --appendonly yes
```
`VOLUME/data`使 `--volumes-from some-volume-container` `-v /docker/host/dir:/data`