ubuntu 16 安装doceker-ce

2024-11-07 15:47:30

1、卸载旧版本的docker,命令:sudo apt remove docker docker-engine docker.io

ubuntu 16 安装doceker-ce

2、更新apt 索引: sudo apt update

3、安装允许apt使用https仓库的包 sudo apt-get install apt-transport-https ca-certif足毂忍珩icates curl software-properties-common

4、添加docker gpg密钥: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add – 会得到9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88密钥,搜索密钥的最后8个字符,核查密钥: sudo apt-key fingerprint 0EBFCD88

ubuntu 16 安装doceker-ce

5、安装Docker软件廪鞠笙褥仓库: sudo add-apt-repository \ "deb [arch=amd64] https多唉捋胝://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable"

6、更新apt索引: sudo apt update

7、安装docker-ce sudo apt install docker-ce

ubuntu 16 安装doceker-ceubuntu 16 安装doceker-ce

8、运行hello-world镜像,验证docker安装成功 sudo docker run hello-world

ubuntu 16 安装doceker-ce
猜你喜欢