用的是这个源cat /etc/apt/sources.list.d/docker.list
deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu crimson stable
没找到
用的是这个源cat /etc/apt/sources.list.d/docker.list
deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu crimson stable
没找到
curl -sSfL get.docker.io -o get_docker.sh
推荐直接下载官方脚本安装。
😂
curl -sSfL get.docker.io -o get_docker.sh
推荐直接下载官方脚本安装。
我猜想是系统改了什么东西?脚本也不行啊
https://bbs.deepin.org/zh/post/290286?offset=0&postId=1738448
好像在哪里看到过,玲珑就是一种特殊的docker,安装玲珑后就不能再安装docker了。
源里没有。先执行一下`sudo apt search docker`看看什么结果,发过来。
源里没有。先执行一下`sudo apt search docker`看看什么结果,发过来。
~$ sudo apt search docker
请输入密码:
验证成功
正在排序... 完成
全文搜索... 完成
buildah/未知 1.37.5+ds1-1 amd64
CLI tool to facilitate building OCI images
cntr/未知 1.5.3-2 amd64
a container debugging tool based on FUSE mount
crun/未知,now 1.14.4-1 amd64 [已安装,自动]
lightweight OCI runtime for running containers
devscripts/未知,未知 2.25.15 all
scripts to make the life of a Debian Package maintainer easier
distrobox/未知,未知 1.8.0-1 all
Another tool for containerized command line environments on Linux
docker-cli/未知 26.1.5+dfsg1-4 amd64
Linux container runtime -- client
docker-cli-dbgsym/未知 26.1.5+dfsg1-4 amd64
debug symbols for docker-cli
docker-compose/未知,未知 1.29.2-6 all
define and run multi-container Docker applications with YAML
docker-doc/未知,未知 26.1.5+dfsg1-4 all
Linux container runtime -- documentation
docker-registry/未知 2.8.2+ds1-1 amd64
Docker toolset to pack, ship, store, and deliver content
docker-registry-dbgsym/未知 2.8.2+ds1-1 amd64
debug symbols for docker-registry
docker.io/未知 26.1.5+dfsg1-4 amd64
Linux container runtime
docker.io-dbgsym/未知 26.1.5+dfsg1-4 amd64
debug symbols for docker.io
dumb-init/未知 1.2.5-3 amd64
wrapper script which proxies signals to a child
golang-docker-credential-helpers/未知 0.6.4+ds1-1 amd64
native stores to safeguard Docker credentials
golang-docker-credential-helpers-dbgsym/未知 0.6.4+ds1-1 amd64
debug symbols for golang-docker-credential-helpers
golang-github-containerd-stargz-snapshotter-dev/未知,未知 0.14.3-3 all
Fast container image distribution plugin with lazy pulling (library)
golang-github-containers-buildah-dev/未知,未知 1.37.5+ds1-1 all
tool to facilitate building OCI images
golang-github-containers-image-dev/未知,未知 5.32.2-4 all
golang library to work with containers' images
golang-github-containers-libtrust-dev/未知,未知 0.0~git20230121.c1716e8-2 all
Primitives for identity and authorization (library)
golang-github-docker-distribution-dev/未知,未知 2.8.2+ds1-1 all
Docker toolset to pack, ship, store, and deliver content (source)
golang-github-docker-docker-credential-helpers-dev/未知,未知 0.6.4+ds1-1 all
native stores to safeguard Docker credentials - library
golang-github-docker-docker-dev/未知,未知 26.1.5+dfsg1-4 all
reusable Go packages included with Docker
golang-github-docker-go-connections-dev/未知,未知 0.4.0-4 all
Golang utility package to work with network connections
golang-github-docker-go-dev/未知,未知 0.0~git20160303.0.d30aec9-3.1 all
Go packages with small patches autogenerated (used for canonical/json)
golang-github-docker-go-events-dev/未知,未知 0.0~git20190806.e31b211-4 all
Composable event distribution for Go
golang-github-docker-go-metrics-dev/未知,未知 0.0.1-2 all
Package for metrics collection in Docker projects
golang-github-docker-go-plugins-helpers-dev/未知,未知 0.20211224-3 all
Helper packages to extend Docker Engine in Golang
golang-github-docker-go-units-dev/未知,未知 0.4.0-4 all
parse and print size and time units in human-readable format
golang-github-docker-libkv-dev/未知,未知 0.2.1-4 all
Key/Value store abstraction library
golang-github-docker-libtrust-dev/未知,未知 0.0~git20150526.0.9cbd2a1-3.1 all
Primitives for identity and authorization
golang-github-docker-notary-dev/未知,未知 0.7.0+git20240416.9d2b3b3+ds1-2 all
library for running and interacting with trusted collections
golang-github-docker-spdystream-dev/未知,未知 0.2.0-1 all
multiplexed stream library using spdy
golang-github-fsouza-go-dockerclient-dev/未知,未知 1.11.0-2 all
Docker client library in Go
golang-github-jfrazelle-go-dev/未知,未知 0.0~git20160303.0.d30aec9-3.1 all
Transitional package for golang-github-docker-go-dev
golang-github-moby-docker-image-spec-dev/未知,未知 1.3.1-2 all
Docker Image Specification v1 (library)
golang-github-mrunalp-fileutils-dev/未知,未知 0.5.1-1 all
collection of utilities for file manipulation in golang
golang-github-opencontainers-runc-dev/未知,未知 1.1.15+ds1-1 all
Open Container Project - development files
golang-github-openshift-imagebuilder-dev/未知,未知 1.2.14+ds1-2 all
Builds container images using Dockerfile as input
golang-github-rootless-containers-rootlesskit-dev/未知,未知 2.0.2-2 all
Linux-native "fake root" for rootless containers (library)
golang-github-vishvananda-netlink-dev/未知,未知 1.1.0.125.gf243826-4 all
netlink library for go
libcib27/未知 2.1.6-4 amd64
cluster resource manager CIB library
libcrmcluster29/未知 2.1.6-4 amd64
cluster resource manager cluster library
libcrmcommon34/未知 2.1.6-4 amd64
cluster resource manager common library
libcrmservice28/未知 2.1.6-4 amd64
cluster resource manager service library
liblrmd28/未知 2.1.6-4 amd64
cluster resource manager LRMD library
libpacemaker1/未知 2.1.6-4 amd64
cluster resource manager utility library
libpe-rules26/未知 2.1.6-4 amd64
cluster resource manager Policy Engine rules library
libpe-status28/未知 2.1.6-4 amd64
cluster resource manager Policy Engine status library
librust-dockerfile-dev/未知 0.2.1-2 amd64
Dynamically generating Dockerfiles - Rust source code
librust-dockworker-dev/未知 0.5.1-1 amd64
Docker daemon API client - Rust source code
librust-is-docker-dev/未知 0.2.0-1 amd64
Checks if the process is running inside a Docker container - Rust source code
libstonithd26/未知 2.1.6-4 amd64
cluster resource manager STONITH daemon library
openshift-imagebuilder/未知 1.2.14+ds1-2 amd64
Builds container images using Dockerfile as input
pacemaker/未知 2.1.6-4 amd64
cluster resource manager
pacemaker-cli-utils/未知 2.1.6-4 amd64
cluster resource manager command line utilities
pacemaker-common/未知,未知 2.1.6-4 all
cluster resource manager common files
pacemaker-cts/未知,未知 2.1.6-4 all
test framework for cluster-related technologies like Pacemaker
pacemaker-dev/未知 2.1.6-4 amd64
cluster resource manager development
pacemaker-doc/未知,未知 2.1.6-4 all
cluster resource manager HTML documentation
pacemaker-remote/未知 2.1.6-4 amd64
cluster resource manager proxy daemon for remote nodes
pacemaker-resource-agents/未知,未知 2.1.6-4 all
cluster resource manager general resource agents
podman/未知,now 5.2.5-1 amd64 [配置文件残留]
tool to manage containers and pods
podman-docker/未知 5.2.5-1 amd64
tool to manage containers and pods (Docker CLI)
podman-remote/未知 5.2.5-1 amd64
tool to manage containers and pods (remote CLI)
python-pydata-sphinx-theme-doc/未知,未知 0.16.1+dfsg-3 all
documentation for the pydata-sphinx-theme Python library
python3-compose/未知,未知 1.29.2-6 all
Python implementation of docker-compose file specification
python3-docker/未知,未知 6.1.3-0.1 all
Python 3 wrapper to access docker.io's control socket
python3-dockerpty/未知,未知 0.4.1-5 all
Pseudo-tty handler for docker Python client (Python 3.x)
python3-ephemeral-port-reserve/未知,未知 1.1.4-2 all
binds to an ephemeral port, force it into the TIME_WAIT state, and unbind it
python3-pacemaker/未知,未知 2.1.6-4 all
Pacemaker API for Python3
python3-pydata-sphinx-theme/未知,未知 0.16.1+dfsg-3 all
bootstrap-based Sphinx theme from the PyData community
resource-agents/未知 1:4.7.0-1+rb3 amd64
Cluster Resource Agents
rootlesskit/未知 2.0.2-2 amd64
Linux-native "fake root" for rootless containers
runsc/未知 0.0~20240729.0-4 amd64
gVisor container sandbox runtime
stargz-snapshotter/未知 0.14.3-3 amd64
Fast container image distribution plugin with lazy pulling (program)
好像在哪里看到过,玲珑就是一种特殊的docker,安装玲珑后就不能再安装docker了。
那用了玲珑之后,对于程序员怎么用好这个系统?有最佳实践吗?
~$ sudo apt search docker
请输入密码:
验证成功
正在排序... 完成
全文搜索... 完成
buildah/未知 1.37.5+ds1-1 amd64
CLI tool to facilitate building OCI images
cntr/未知 1.5.3-2 amd64
a container debugging tool based on FUSE mount
crun/未知,now 1.14.4-1 amd64 [已安装,自动]
lightweight OCI runtime for running containers
devscripts/未知,未知 2.25.15 all
scripts to make the life of a Debian Package maintainer easier
distrobox/未知,未知 1.8.0-1 all
Another tool for containerized command line environments on Linux
docker-cli/未知 26.1.5+dfsg1-4 amd64
Linux container runtime -- client
docker-cli-dbgsym/未知 26.1.5+dfsg1-4 amd64
debug symbols for docker-cli
docker-compose/未知,未知 1.29.2-6 all
define and run multi-container Docker applications with YAML
docker-doc/未知,未知 26.1.5+dfsg1-4 all
Linux container runtime -- documentation
docker-registry/未知 2.8.2+ds1-1 amd64
Docker toolset to pack, ship, store, and deliver content
docker-registry-dbgsym/未知 2.8.2+ds1-1 amd64
debug symbols for docker-registry
docker.io/未知 26.1.5+dfsg1-4 amd64
Linux container runtime
docker.io-dbgsym/未知 26.1.5+dfsg1-4 amd64
debug symbols for docker.io
dumb-init/未知 1.2.5-3 amd64
wrapper script which proxies signals to a child
golang-docker-credential-helpers/未知 0.6.4+ds1-1 amd64
native stores to safeguard Docker credentials
golang-docker-credential-helpers-dbgsym/未知 0.6.4+ds1-1 amd64
debug symbols for golang-docker-credential-helpers
golang-github-containerd-stargz-snapshotter-dev/未知,未知 0.14.3-3 all
Fast container image distribution plugin with lazy pulling (library)
golang-github-containers-buildah-dev/未知,未知 1.37.5+ds1-1 all
tool to facilitate building OCI images
golang-github-containers-image-dev/未知,未知 5.32.2-4 all
golang library to work with containers' images
golang-github-containers-libtrust-dev/未知,未知 0.0~git20230121.c1716e8-2 all
Primitives for identity and authorization (library)
golang-github-docker-distribution-dev/未知,未知 2.8.2+ds1-1 all
Docker toolset to pack, ship, store, and deliver content (source)
golang-github-docker-docker-credential-helpers-dev/未知,未知 0.6.4+ds1-1 all
native stores to safeguard Docker credentials - library
golang-github-docker-docker-dev/未知,未知 26.1.5+dfsg1-4 all
reusable Go packages included with Docker
golang-github-docker-go-connections-dev/未知,未知 0.4.0-4 all
Golang utility package to work with network connections
golang-github-docker-go-dev/未知,未知 0.0~git20160303.0.d30aec9-3.1 all
Go packages with small patches autogenerated (used for canonical/json)
golang-github-docker-go-events-dev/未知,未知 0.0~git20190806.e31b211-4 all
Composable event distribution for Go
golang-github-docker-go-metrics-dev/未知,未知 0.0.1-2 all
Package for metrics collection in Docker projects
golang-github-docker-go-plugins-helpers-dev/未知,未知 0.20211224-3 all
Helper packages to extend Docker Engine in Golang
golang-github-docker-go-units-dev/未知,未知 0.4.0-4 all
parse and print size and time units in human-readable format
golang-github-docker-libkv-dev/未知,未知 0.2.1-4 all
Key/Value store abstraction library
golang-github-docker-libtrust-dev/未知,未知 0.0~git20150526.0.9cbd2a1-3.1 all
Primitives for identity and authorization
golang-github-docker-notary-dev/未知,未知 0.7.0+git20240416.9d2b3b3+ds1-2 all
library for running and interacting with trusted collections
golang-github-docker-spdystream-dev/未知,未知 0.2.0-1 all
multiplexed stream library using spdy
golang-github-fsouza-go-dockerclient-dev/未知,未知 1.11.0-2 all
Docker client library in Go
golang-github-jfrazelle-go-dev/未知,未知 0.0~git20160303.0.d30aec9-3.1 all
Transitional package for golang-github-docker-go-dev
golang-github-moby-docker-image-spec-dev/未知,未知 1.3.1-2 all
Docker Image Specification v1 (library)
golang-github-mrunalp-fileutils-dev/未知,未知 0.5.1-1 all
collection of utilities for file manipulation in golang
golang-github-opencontainers-runc-dev/未知,未知 1.1.15+ds1-1 all
Open Container Project - development files
golang-github-openshift-imagebuilder-dev/未知,未知 1.2.14+ds1-2 all
Builds container images using Dockerfile as input
golang-github-rootless-containers-rootlesskit-dev/未知,未知 2.0.2-2 all
Linux-native "fake root" for rootless containers (library)
golang-github-vishvananda-netlink-dev/未知,未知 1.1.0.125.gf243826-4 all
netlink library for go
libcib27/未知 2.1.6-4 amd64
cluster resource manager CIB library
libcrmcluster29/未知 2.1.6-4 amd64
cluster resource manager cluster library
libcrmcommon34/未知 2.1.6-4 amd64
cluster resource manager common library
libcrmservice28/未知 2.1.6-4 amd64
cluster resource manager service library
liblrmd28/未知 2.1.6-4 amd64
cluster resource manager LRMD library
libpacemaker1/未知 2.1.6-4 amd64
cluster resource manager utility library
libpe-rules26/未知 2.1.6-4 amd64
cluster resource manager Policy Engine rules library
libpe-status28/未知 2.1.6-4 amd64
cluster resource manager Policy Engine status library
librust-dockerfile-dev/未知 0.2.1-2 amd64
Dynamically generating Dockerfiles - Rust source code
librust-dockworker-dev/未知 0.5.1-1 amd64
Docker daemon API client - Rust source code
librust-is-docker-dev/未知 0.2.0-1 amd64
Checks if the process is running inside a Docker container - Rust source code
libstonithd26/未知 2.1.6-4 amd64
cluster resource manager STONITH daemon library
openshift-imagebuilder/未知 1.2.14+ds1-2 amd64
Builds container images using Dockerfile as input
pacemaker/未知 2.1.6-4 amd64
cluster resource manager
pacemaker-cli-utils/未知 2.1.6-4 amd64
cluster resource manager command line utilities
pacemaker-common/未知,未知 2.1.6-4 all
cluster resource manager common files
pacemaker-cts/未知,未知 2.1.6-4 all
test framework for cluster-related technologies like Pacemaker
pacemaker-dev/未知 2.1.6-4 amd64
cluster resource manager development
pacemaker-doc/未知,未知 2.1.6-4 all
cluster resource manager HTML documentation
pacemaker-remote/未知 2.1.6-4 amd64
cluster resource manager proxy daemon for remote nodes
pacemaker-resource-agents/未知,未知 2.1.6-4 all
cluster resource manager general resource agents
podman/未知,now 5.2.5-1 amd64 [配置文件残留]
tool to manage containers and pods
podman-docker/未知 5.2.5-1 amd64
tool to manage containers and pods (Docker CLI)
podman-remote/未知 5.2.5-1 amd64
tool to manage containers and pods (remote CLI)
python-pydata-sphinx-theme-doc/未知,未知 0.16.1+dfsg-3 all
documentation for the pydata-sphinx-theme Python library
python3-compose/未知,未知 1.29.2-6 all
Python implementation of docker-compose file specification
python3-docker/未知,未知 6.1.3-0.1 all
Python 3 wrapper to access docker.io's control socket
python3-dockerpty/未知,未知 0.4.1-5 all
Pseudo-tty handler for docker Python client (Python 3.x)
python3-ephemeral-port-reserve/未知,未知 1.1.4-2 all
binds to an ephemeral port, force it into the TIME_WAIT state, and unbind it
python3-pacemaker/未知,未知 2.1.6-4 all
Pacemaker API for Python3
python3-pydata-sphinx-theme/未知,未知 0.16.1+dfsg-3 all
bootstrap-based Sphinx theme from the PyData community
resource-agents/未知 1:4.7.0-1+rb3 amd64
Cluster Resource Agents
rootlesskit/未知 2.0.2-2 amd64
Linux-native "fake root" for rootless containers
runsc/未知 0.0~20240729.0-4 amd64
gVisor container sandbox runtime
stargz-snapshotter/未知 0.14.3-3 amd64
Fast container image distribution plugin with lazy pulling (program)
docker.io或docker-cli都可以。
docker.io或docker-cli都可以。
谢谢,已完成安装
谢谢,已完成安装
安装后docker能正常使用了没?
安装后docker能正常使用了没?
第一个镜像就没有下下来。
~$ sudo docker pull mysql:8.0
Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
然后改了 /etc/docker/daemon.json 没有效果
~$ cat /etc/docker/daemon.json
{
"registry-mirrors": ["https://registry.docker-cn.com"]
}
第一个镜像就没有下下来。
~$ sudo docker pull mysql:8.0
Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
然后改了 /etc/docker/daemon.json 没有效果
~$ cat /etc/docker/daemon.json
{
"registry-mirrors": ["https://registry.docker-cn.com"]
}
国内源好像失效了,官方源又太慢。
国内源好像失效了,官方源又太慢。
那咋办呢?😂
那咋办呢?😂
我刚才搜了一个,不知能用不,你自己进去看看。https://zhuanlan.zhihu.com/p/24461370776
我刚才搜了一个,不知能用不,你自己进去看看。https://zhuanlan.zhihu.com/p/24461370776
目前使用了公司内部的镜像源
目前使用了公司内部的镜像源
能用了没?
Popular Events
More
xxx:~$ sudo apt-get install docker-ce
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
没有可用的软件包 docker-ce,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到
E: 软件包 docker-ce 没有可安装候选