安装 Redis @ Docker

1、安装

[root@vultr ~]# docker pull redis
Using default tag: latest
latest: Pulling from library/redis
bc51dd8edc1b: Pull complete 
37d80eb324ee: Pull complete 
392b7748dfaf: Pull complete 
48df82c3534d: Pull complete 
2ec2bb0b4b0e: Pull complete 
1302bce0b2cb: Pull complete 
Digest: sha256:7b84b346c01e5a8d204a5bb30d4521bcc3a8535bbf90c660b8595fad248eae82
Status: Downloaded newer image for redis:latest
docker.io/library/redis:latest

2、运行

[root@vultr ~]# docker run --name some-redis -d redis
d6e545f91393c512c350dd44bee62bba8377f043a21977fe6888184b7038aff3

3、redis-cli

[root@vultr ~]# docker exec -it d6e545f91393 bash
root@d6e545f91393:/data# ls
root@d6e545f91393:/data# redis-cli 
127.0.0.1:6379> get *
(nil)

4、URL

https://hub.docker.com/_/redis/
https://hub.docker.com/search?q=&type=image

点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注