以redis为例 1.docker没有启动的需要先重启docker [root@localhost ~]# systemctl start docker 2.查看已经创建的容器 [root@localhost ~]# docker ps -a 3.重启redis [root@localhost