mirror of
https://github.com/yeasy/docker_practice.git
synced 2025-08-08 00:02:53 +00:00
Update appendix/repo
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
## [Redis](https://hub.docker.com/_/redis/)
|
||||
## [Redis](https://store.docker.com/images/redis/)
|
||||
|
||||
### 基本信息
|
||||
|
||||
[Redis](https://en.wikipedia.org/wiki/Redis) 是开源的内存 Key-Value 数据库实现。
|
||||
|
||||
该仓库位于 https://hub.docker.com/_/redis/ ,提供了 Redis 3.x 各个版本的镜像。
|
||||
该仓库位于 https://store.docker.com/images/redis/ ,提供了 Redis 3.x ~ 4.x 各个版本的镜像。
|
||||
|
||||
### 使用方法
|
||||
|
||||
默认会在 `6379` 端口启动数据库。
|
||||
|
||||
```bash
|
||||
$ docker run --name some-redis -d redis
|
||||
```
|
||||
|
||||
另外还可以启用 [持久存储](http://redis.io/topics/persistence)。
|
||||
|
||||
```bash
|
||||
@@ -24,6 +27,7 @@ $ docker run --name some-redis -d redis redis-server --appendonly yes
|
||||
```bash
|
||||
$ docker run --name some-app --link some-redis:redis -d application-that-uses-redis
|
||||
```
|
||||
|
||||
或者通过 `redis-cli`
|
||||
|
||||
```bash
|
||||
|
Reference in New Issue
Block a user