相关疑难解决方法(0)

如何在 Ubuntu 20.04 LTS 上安装 docker 社区?

当我关注社区码头时,我遇到了以下问题:

 sudo add-apt-repository \
>    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
>    $(lsb_release -cs) \
>    stable"
[sudo] password for yogesh: 
Hit:1 https://download.docker.com/linux/ubuntu bionic InRelease
Get:2 http://in.archive.ubuntu.com/ubuntu focal InRelease [265 kB]             
Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease                   
Ign:4 https://download.docker.com/linux/ubuntu focal InRelease                 
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease               
Hit:6 http://packages.microsoft.com/repos/vscode stable InRelease              
Err:7 https://download.docker.com/linux/ubuntu focal Release                   
  404  Not Found [IP: 54.182.0.11 443]
Hit:8 http://dl.google.com/linux/chrome/deb stable Release                     
Hit:10 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:11 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/ubuntu focal Release' does …
Run Code Online (Sandbox Code Playgroud)

docker 20.04

45
推荐指数
2
解决办法
4万
查看次数

找不到单元 docker.service

是否需要连接接口?或者这可能是防火墙问题?

thufir@dur:~$ sudo snap install docker
docker 17.06.1-ce from 'docker-inc' installed
thufir@dur:~$ sudo service docker start
Failed to start docker.service: Unit docker.service not found.
thufir@dur:~$ sudo systemctl status docker
Unit docker.service could not be found.
thufir@dur:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 17.10
Release:    17.10
Codename:   artful
thufir@dur:~$ snap list
Name         Version     Rev   Developer   Notes
core         16-2.29.3   3440  canonical   core
docker       17.06.1-ce  171   docker-inc  -
hello-world  6.3         27    canonical   - …
Run Code Online (Sandbox Code Playgroud)

server command-line container docker snap

23
推荐指数
2
解决办法
6万
查看次数

标签 统计

docker ×2

20.04 ×1

command-line ×1

container ×1

server ×1

snap ×1