docker-问题总结

问题1

问题简述: 复制了一台醒的虚拟机, 在使用docker search出错,报错信息如下

[root@centos-master1 data]# docker search mysql
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

解决方案:

[root@centos-master1 data]# 
[root@centos-master1 data]# systemctl daemon-reload
[root@centos-master1 data]# systemctl restart docker.service
NAME                              DESCRIPTION                                     STARS               OFFICIAL            AUTOMATED
mysql                             MySQL is a widely used, open-source relation…   9704                [OK]                
mariadb                           MariaDB is a community-developed fork of MyS…   3534                [OK]                
mysql/mysql-server                Optimized MySQL Server Docker images. Create…   708                                     [OK]
...