ubuntu安装Docker

1、安装必要的系统工具

      

1 sudo apt-get update
View Code
1 sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
View Code

2、安装GPG证书

1 curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
View Code

3、写入软件源信息

1 sudo add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
View Code

 

4、更新并安装Docker-CE

1 sudo apt-get -y update
View Code
1 sudo apt-get -y install docker-ce
View Code

 

posted on 2022-01-07 10:31  木乃伊人  阅读(51)  评论(0编辑  收藏  举报

导航