1.拉取最新的redis镜像 docker pull redis; 2.创建存放redis数据的目录 mkdir /redis/data 3.查询redis镜像id docker images; REPOSITORY TAG IMAGE ID CREATED SIZE redis latest 3c41ce05add9 13 days ago 95MB 4.查看当前正在运行的容器 docker ps; CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS…