Docker ubuntu安装指南

  • 点击下方链接进入官方安装指南,按照官方安装指南走,如果有问题可以查阅下面常见的问题解决方案。

  1. 添加 docker 官方 GPG key

    curl -fsSL https:``//download``.docker.com``/linux/ubuntu/gpg | ``sudo apt-key add -

    报错:

    gpg: can't connect to the agent: IPC connect call failed

    解决方法:

    apt remove gpg``apt ``install gnupg1

  2. 设置 docker 稳定版仓库

    sudo add-apt-repository ``"deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

    报错:

    add-apt-repository ``command not found

    解决方法:

    apt-get ``install software-properties-common

  3. 更新源

    sudo apt-get update

    报错:

    Hit:1 https:``//mirrors``.tuna.tsinghua.edu.cn``/ubuntu focal InRelease``Hit:2 https:``//mirrors``.tuna.tsinghua.edu.cn``/ubuntu focal-updates InRelease``Hit:3 https:``//mirrors``.tuna.tsinghua.edu.cn``/ubuntu focal-backports InRelease``Hit:4 https:``//mirrors``.tuna.tsinghua.edu.cn``/ubuntu focal-security InRelease``Ign:5 https:``//download``.docker.com``/linux/ubuntu focal InRelease``Err:6 https:``//download``.docker.com``/linux/ubuntu focal Release`` ``404 Not Found [IP: 13.227.60.113 443]``Reading package lists... Done``E: The repository ``'https://download.docker.com/linux/ubuntu focal Release' does not have a Release ``file``.``N: Updating from such a repository can't be ``done securely, and is therefore disabled by default.``N: See apt-secure(8) manpage ``for repository creation and user configuration details.

    解决方法:在 /etc/apt/source.list 文件中增加如下配置

    deb [arch=amd64] https:``//download``.docker.com``/linux/ubuntu bionic stable

    再次更新源

    sudo apt-get update

    报错:

    Hit:1 https:``//mirrors``.tuna.tsinghua.edu.cn``/ubuntu focal InRelease``Hit:2 https:``//mirrors``.tuna.tsinghua.edu.cn``/ubuntu focal-updates InRelease``Hit:3 https:``//mirrors``.tuna.tsinghua.edu.cn``/ubuntu focal-backports InRelease``Hit:4 https:``//mirrors``.tuna.tsinghua.edu.cn``/ubuntu focal-security InRelease``Ign:5 https:``//download``.docker.com``/linux/ubuntu focal InRelease``Get:6 https:``//download``.docker.com``/linux/ubuntu bionic InRelease [64.4 kB]``Err:7 https:``//download``.docker.com``/linux/ubuntu focal Release`` ``404 Not Found [IP: 13.224.166.20 443]``Get:8 https:``//download``.docker.com``/linux/ubuntu bionic``/stable amd64 Packages [11.0 kB]``Reading package lists... Done``E: The repository ``'https://download.docker.com/linux/ubuntu focal Release' does not have a Release ``file``.``N: Updating from such a repository can't be ``done securely, and is therefore disabled by default.``N: See apt-secure(8) manpage ``for repository creation and user configuration details.

    解决方法:删除 /etc/apt/source.list

    https:``//download``.docker.com``/linux/ubuntu focal Release

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

早睡的叶子

你的鼓励就是我的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值