docker启动报错

systemctl restart docker
报错提示
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

根据网络搜索问题资料和最终解决问题的结果来看,这个问题是docker的镜像配置出现了问题。

镜像地址
/etc/docker/daemon.json

没有这个文件可以创建一个

内容如下
{
	"registry-mirrors": ["https://registry.docker-cn.com"],
	"storage-driver" : "devicemapper"
}

我的阿里云镜像

{
  "registry-mirrors": ["https://n9mwkh6m.mirror.aliyuncs.com"]
}

docker启动容器报错

docker: Error response from daemon: pull access denied for xxx, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied.

解决办法:重启容器就行