首先查看docker有的镜像 docker images 执行Redis应用 docker exec -it redis-test /bin/bash 然后就进入localhost:6379即系Redis 的默认端口