潭州课堂25班:Ph201805201 django 项目 第二十六课 docker简介 (课堂笔记)

官方文档:

https://docs.docker.com/install/linux/docker-ce/ubuntu/#set-up-the-repository

1,更新下sudo apt-get update

2,安装包以允许apt通过HTTPS使用存储库:

 sudo apt-get install \
    apt-transport-https \
    ca-certificates \ curl \ software-properties-common


3,添加Docker的官方GPG密钥:
 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
验证下指纹:
sudo apt-key fingerprint 0EBFCD88

 
sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable"
 

安装DOCKER CE

  1. 更新apt包索引。

    $ sudo apt-get update


正式安装:
安装最新版本的Docker CE,或转到下一步安装特定版本:
 sudo apt-get install docker-ce
 

猜你喜欢

转载自www.cnblogs.com/gdwz922/p/10177258.html