?
今天嘗試了下docker,發(fā)現(xiàn)存在以下問題,進行記錄。
時間:2023-12-26
操作系統(tǒng):centos opencloudos(騰訊云服務(wù)器所用centos)
1、pull測試的hello-world鏡像報錯:
[root@~]# docker run hello-world
Unable to find image 'hello-world:latest' locally
查了下,需要新建daemon.json文件,把docker國外源變更為國內(nèi)源。
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
總結(jié):文章來源:http://www.zghlxwxcb.cn/news/detail-826190.html
docker拉取鏡像報錯時,可以嘗試修改源。文章來源地址http://www.zghlxwxcb.cn/news/detail-826190.html
到了這里,關(guān)于【docker】 Unable to find image的解決辦法的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!