胖橘-大橘 2024-08-24 15:18 采纳率: 0%
浏览 14

docker run hello-world出现的问题

docker run hello-world 出现了
Unable to find image 'hello-world:latest' locally
Trying to pull repository docker.io/library/hello-world ...
/usr/bin/docker-current: missing signature key.
See '/usr/bin/docker-current run --help'.

换镜像源也解决不了

  • 写回答

2条回答 默认 最新

  • 吃不了席 2024-08-24 15:19
    关注

    以下回复参考:皆我百晓生券券喵儿等免费微信小程序作答:

    这个问题是由于Docker缺少签名密钥导致的。你可以尝试以下步骤来解决这个问题:

    1. 更新Docker的GPG密钥:
    sudo apt-get update
    sudo apt-get install -y curl gnupg2 software-properties-common
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    
    1. 添加Docker的官方仓库:
    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
    
    1. 再次更新软件包列表并安装Docker:
    sudo apt-get update
    sudo apt-get install -y docker-ce
    
    1. 确保Docker服务已启动并运行:
    sudo systemctl start docker
    sudo systemctl enable docker
    
    1. 重新运行docker run hello-world命令,问题应该已经解决。
    评论

报告相同问题?

问题事件

  • 创建了问题 8月24日

悬赏问题

  • ¥15 如何在vue.config.js中读取到public文件夹下window.APP_CONFIG.API_BASE_URL的值
  • ¥50 浦育平台scratch图形化编程
  • ¥20 求这个的原理图 只要原理图
  • ¥15 vue2项目中,如何配置环境,可以在打完包之后修改请求的服务器地址
  • ¥20 微信的店铺小程序如何修改背景图
  • ¥15 UE5.1局部变量对蓝图不可见
  • ¥15 一共有五道问题关于整数幂的运算还有房间号码 还有网络密码的解答?(语言-python)
  • ¥20 sentry如何捕获上传Android ndk 崩溃
  • ¥15 在做logistic回归模型限制性立方条图时候,不能出完整图的困难
  • ¥15 G0系列单片机HAL库中景园gc9307液晶驱动芯片无法使用硬件SPI+DMA驱动,如何解决?