docker 中安装和启动 redis
之前配置文件方式不知道为什么没有启动起来, 先手动启动下, 其他待定
[vagrant@localhost ~]$ su root Password: [root@localhost vagrant]# [root@localhost vagrant]# [root@localhost vagrant]# [root@localhost vagrant]# docker pull redis Using default tag: latest latest: Pulling from library/redis Digest: sha256:ea0411481eef6fd90b3ee86cca2b580a8583a1f405d4d8cefe822a08df7068e3 Status: Image is up to date for redis:latest docker.io/library/redis:latest [root@localhost vagrant]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 93aa946bdbe2 mysql:5.7 "docker-entrypoint.s…" 2 hours ago Up About an hour 0.0.0.0:3306->3306/tcp, 33060/tcp mysql [root@localhost vagrant]# docker run --name some-redis -d redis 8d9953c0e062750b1fae87a5dd62946af526f9e9da1213fb3e5eb129a5f5f6fc [root@localhost vagrant]# [root@localhost vagrant]# [root@localhost vagrant]# [root@localhost vagrant]# [root@localhost vagrant]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 8d9953c0e062 redis "docker-entrypoint.s…" 7 seconds ago Up 5 seconds 6379/tcp some-redis 93aa946bdbe2 mysql:5.7 "docker-entrypoint.s…" 2 hours ago Up About an hour 0.0.0.0:3306->3306/tcp, 33060/tcp mysql [root@localhost vagrant]# [root@localhost vagrant]# [root@localhost vagrant]# [root@localhost vagrant]#