安装(Ubuntu)
1.更新apt
apt-get update
2.安装相关依赖
apt-get install apt-transport-https ca-certificates curl gnupg-agen
3.添加docker的官方密钥
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
4.检查是否添加成功
apt-key fingerprint 0EBFCD88
出现9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88就是添加成功
5.添加官方仓库
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
6.安装docker engine
apt-get install docker-ce docker-ce-cli containerd.io
7.测试是否安装成功
docker run hello-world
标签:get,记录,apt,添加,https,docker,安装
From: https://www.cnblogs.com/yyfyy/p/17174837.html