一、拉取Redis镜像
docker pull hub.c..com/library/redis:4.0.
二、创建并运行Redis
docker run -d -it --name redis d4f259423416
三、进入容器
docker exec -it redis bash
root@afa6370833fc:/# ls -a
. .. .dockerenv bin boot data dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var