【docker】 Unable to find image的解决办法

这篇具有很好参考价值的文章主要介绍了【docker】 Unable to find image的解决办法。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。


 

今天尝试了下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拉取镜像报错时,可以尝试修改源。文章来源地址https://www.toymoban.com/news/detail-826190.html

到了这里,关于【docker】 Unable to find image的解决办法的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • docker run hello-world报错:Unable to find image ‘hello-world:latest‘ locally

    报错提示: Unable to find image \\\'hello-world:latest\\\' locally docker: Error response from daemon: Head \\\"https://registry-1.docker.io/v2/library/hello-world/manifests/latest\\\": dial tcp: lookup registry-1.docker.io on 192.168.230.2:53: no such host. See \\\'docker run --help\\\'. 解决方法: 首先检查DNS,如果DNS没有配置,需要添加DNS地址。编

    2024年02月12日
    浏览(76)
  • Unable to find an entry point named ‘OrtGetApiBase‘ in DLL ‘onnxruntime‘解决办法记录

    最近在做深度学习的项目,onnx用c#程序部署。 然后发现在部署/移植模型的时候遇到了一个问题,找了很多资料都没解决 还得亲自动手了 各种测试以后发现是程序包的问题 解决办法是移除掉项目中已经有的microsoft.ml.onnxruntime包,自己重新安装,即可。 步骤1:包名上右击--》

    2024年02月11日
    浏览(40)
  • Portainer连不上docker Unable to retrieve images或Unable to connect to the Docker environment

    系统:Centos docker:23.0.6 portainer:2.19.2 服务器A and 服务器B A,B都有Docker 现象 1、在A上安装了Portainer后,local evironment 可以显示images数量等信息,但无法显示详情,出现Unable to connect to the Docker environment 2、尝试         编辑docker.service         找到 ExecStart字段修改如下  

    2024年04月13日
    浏览(36)
  • docker Unable to calculate image disk size

    docker用着用着就启动不了了,一直starting。卸载重装了,再启动报错Unable to calculate image disk size。网上找了些解决办法。 我的是windows10家庭版,docker下载地址:Install Docker Desktop on Windows | Docker Documentation    发现window10找不到这个东西 解决办法:对于windows10家庭版无法勾选Hype

    2024年02月12日
    浏览(54)
  • linux开启防火墙后,Docker容器启动报错:ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule 解决办法

    目录 1、错误场景和现象 2、原因分析 3、解决办法 linux开启或重启防火墙后,创建docker自定义网络时 报错: [root@VM-16-5-centos home]# docker network create --driver bridge --subnet 192.168.0.0/16 --gateway 192.168.0.1 frayernet Error response from daemon: Failed to Setup IP tables: Unable to enable SKIP DNAT rule:  (ipta

    2024年02月12日
    浏览(30)
  • 2023年 Android Studio Unable to find bundled Java version 解决方法

    学习flutter过程中发现 Unable to find bundled Java version 错误 搜索网上的解决方案都不对 最后在 b站 https://www.bilibili.com/video/BV1S4411E7LY?p=17vd_source=d7cf0e2cd70b3cc57314d2efcb598c3d 教程的课件中找到了解决方哦 我的flutter版本 jdk jdk-19.0.2 操作系统 windows11 如果是macOS系统,在jbr同目录下创建一

    2023年04月08日
    浏览(36)
  • https请求报错unable to find valid certification path to requested target解决

            在Java项目中请求HTTPS时,可能会遇到 \\\"unable to find valid certification path to requested target\\\" 错误。这个错误通常是由于SSL证书问题引起的。要解决此问题,可以尝试以下方法 1.忽略SSL验证         OkHttpClient封装请求         HttpURLConnection请求         RestTemplate请求

    2024年02月08日
    浏览(37)
  • 彻底解决:SunCertPathBuilderException: unable to find valid certification path to requested target错误的方法

    请求12306系统查票。之前正常的,现在提示这样的错误: Exception in thread \\\"main\\\" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 如下图:  导致原因:由

    2024年02月05日
    浏览(38)
  • 【bug解决】RuntimeError: Unable to find a valid cuDNN algorithm to run convolution

    进行深度学习的算法模型训练的时候,终端报错: 产生报错的原因可能有两种: 1.模型训练的环境中cudnn,CUDA的版本号不匹配 解决办法:安装对应的cudnn,以及cuda,找到对应的torch框架,进行安装 2.其实问题更加简单,是模型的训练的batch-size训练过大了,调整更小,就可以了

    2024年02月11日
    浏览(39)
  • Unable to initialize Git; AggregateError(2) Error: Unable to find git Error: Unable to find git

    MacBook Pro m1 升级系统到13版本后,系统中原有的git突然就不能用了,,,输入git -v 既然打印不到版本号???使用which git 是能打印到配置路径的,,, 解决方案: stack overfolw 帖子地址 然后会跳出一个弹窗让你安装xcode-select 点击安装,自动安装完成,控制台再输入git -v就能

    2024年02月12日
    浏览(57)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包