1.docker run hello-world
安装docker之后,测试hello-world镜像,出现Unable to find image 'hello-world:latest' locally错误
原因:应该是镜像地址的问题(本地没有pull,也无法从国外服务器下载)。
需要修改配置文件 /etc/docker/daemon.json 如下
{
"registry-mirrors": ["https://alzgoonw.mirror.aliyuncs.com"]
}
配置文件daemon.json添加阿里云镜像地址,保存并退出,并且重启docker服务即可:systemctl restart docker
2.问题: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service"
解决方案:
2.1:将以前版本的Docker卸载干净: yum remove docker-*
2.2:更新该Liunx系统的内核版本: yum update
2.3:继续下载安装docker(尽量使用高级管理员权限下载): yum install dacker
2.4:使用如下命令启动docker: systemctl start docker