docker到底怎么安装?
Tofloor
poster avatar
wksd
deepin
2019-10-27 13:42
Author
https://wiki.deepin.org/index.php?title=Docker&oldid=1131  ,这篇到第二步就不行了,提示‘’‘Package python-software-properties is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  software-properties-common

E: Package 'python-software-properties' has no installation candidate
‘’‘


Reply Favorite View the author
All Replies
avatar
wksd
deepin
2019-10-27 13:43
#1
有没有正确的教程?官方应用商店也搜不到
Reply View the author
avatar
梦幻大陆
deepin
2019-10-27 17:22
#2
sudo apt install docker-ce
Reply View the author
avatar
132******21
deepin
2019-10-27 17:31
#3
下载脚本
curl -fsSL https://get.docker.com -o get-docker.sh
执行脚本
sh get-docker.sh
可以不用sudo运行
usermod -aG docker 你的用户名
Reply View the author
Comments
jian555gg
2019-10-27 21:47
绝大多数情况这样就够了 再修改服务默认状态或选择手动启动服务就完成最基本安装了
avatar
zzb
deepin
2019-10-27 19:07
#4
https://blog.csdn.net/qq_42034068/article/details/102471415
Reply View the author
avatar
Ligocut光剪视频剪辑软件
deepin
Backbone of ecological co-construction group
2019-10-27 19:29
#5
Reply View the author
avatar
wildlife
deepin
2019-10-27 21:07
#6
sudo apt update

# 移除旧版本的 Docker
sudo apt remove docker docker-engine docker.io

# 安装以下软件包以允许 apt 通过 HTTPS 使用仓库
sudo apt install apt-transport-https ca-certificates curl gnupg2 -y

# 添加 Docker 的官方 GPG 密钥
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -

# 验证密钥是不是 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
sudo apt-key fingerprint 0EBFCD88
# 正确密钥应该如下显示
pub   4096R/0EBFCD88 2017-02-22
      Key fingerprint = 9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88
uid                  Docker Release (CE deb) <docker@docker.com>
sub   4096R/F273FCD8 2017-02-22

# 添加 Docker 官方仓库
echo "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable" | sudo tee /etc/apt/sources.list.d/docker.list

# 安装 Docker-CE
sudo apt update && sudo apt install docker-ce -y

# 免 sudo 使用 docker,注销再登录生效。
# 参考链接:http://tinylab.org/use-docker-without-sudo/
sudo groupadd docker
sudo usermod -aG docker $USER

# 安装 docker-compose
sudo curl -L https://github.com/docker/compos ... cker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Reply View the author
avatar
wildlife
deepin
2019-10-27 21:08
#7
本帖最后由 lanseyujie 于 2019-10-27 13:16 编辑

上面的长链接被省略了,详见 https://github.com/lanseyujie/docker-lnmp 的 README,官方源比较慢,可自行更换清华源
Reply View the author
avatar
userid
deepin
2019-10-29 00:21
#8
https://wiki.deepin.org/wiki/Docker

这写的还是挺清楚的。
Reply View the author