docker安装redis docker官网 1、获取镜像 docker pull redis 2、构建容器 docker run --name redis -p 5020:6379 -d --restart=always redis