【docker】 Unable to find image的解决办法
然而并不支持,重新运行docker报错Job for docker.service failed because the control process exited with error code.操作系统:centos opencloudos(腾讯云服务器所用centos)查了下,需要新建daemon.json文件,把docker国外源变更为国内源。今天尝试了下docker,发现存在以下问题,
   ·  
 
   
今天尝试了下docker,发现存在以下问题,进行记录。
时间:2023-12-26
操作系统:centos opencloudos(腾讯云服务器所用centos)
1、pull测试的hello-world镜像报错:
[root@~]# docker run hello-world
Unable to find image 'hello-world:latest' locally
查了下,需要新建daemon.json文件,把docker国外源变更为国内源。
2、尝试
[root@ ~]# vim /etc/docker/daemon.json在里面insert:
{"registry-mirrors": ["https://registry.docker-cn.com","http://hub-mirror.c.163.com"]}然而并不支持,重新运行docker报错Job for docker.service failed because the control process exited with error code.
Job for docker.service failed because the control process exited with error code.3、运行下列命令查看报错信息:
journalctl -xe
报错的信息是 Failed to start Docker Application Container Engine.
4、尝试修改源,重启docker,成功。
 { 
 "registry-mirrors": ["https://alzgoonw.mirror.aliyuncs.com"] 
 }
systemctl restart docker
systemctl status docker总结:
docker拉取镜像报错时,可以尝试修改源。
更多推荐
 
 




所有评论(0)