Ubuntu 安装 docker-ce 提示 Package docker-ce is not available, but is referred to by another package.

打开 /etc/apt/sources.list.d/docker.list 中添加下面内容

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

更新并安装

sudo apt-get update

如果 sudo apt-get update 的过程很慢,可以尝试使用国内的镜像

sudo apt-get install docker-ce
发布了34 篇原创文章 · 获赞 34 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/qq_19154605/article/details/105023891