Centos下的Docker安装与升级
使用安装包安装
安装
- 下载 .rpm 安装包, 使用此地址选择要下载的版本 https://download.docker.com/linux/centos/7/x86_64/stable/Packages/
curl -O https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-18.06.1.ce-3.el7.x86_64.rpm
- 安装docker
sudo yum install docker-ce-18.06.1.ce-3.el7.x86_64.rpm
- 启动docker
sudo systemctl start docker
- 验证安装书否成功
sudo docker run hello-world
更新
- 下载新的安装包
curl -O https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-18.06.1.ce-3.el7.x86_64.rpm
- 使用yum -y upgrade更新docker
sudo yum -y upgrade docker-ce-18.06.1.ce-3.el7.x86_64.rpm
相关推荐
changecan 2020-11-19
changecan 2020-09-22
王道革 2020-11-25
bwyyziq 2020-11-22
pigsmall 2020-11-19
helloWorldAndYou 2020-11-16
nginxs 2020-11-14
红石丶 2020-11-13
WanKaShing 2020-11-12
yangkang 2020-11-12
滴水穿石点石成金 2020-11-12
张荣珍 2020-11-12
wuxunanjing 2020-11-11
魅惑青花瓷 2020-11-11
lihongtai 2020-11-09
yangkang 2020-11-09
worldsnow 2020-11-06
MichaelJScofield 2020-11-06