docker安装

2018-09-29  本文已影响0人  修夏起泡

cd /etc/sysconfig/network-scripts/
ls
vi ifcfg-ens33
修改ONBOOT=yes # 自动启用网络

sudo yum install -y yum-utils device-mapper-persistent-data lvm2
Install required packages. yum-utils provides the yum-config-manager utility, and device-mapper-persistent-data and lvm2 are required by the devicemapper storage driver
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo #set up the stable repository
sudo yum-config-manager --enable docker-ce-test #启用仓库,可通过 --disable 关闭

sudo yum isntall docker-ce
sudo yum install docker-ce-<VERSION STRING> 可安装指定版本

sudo systemctl start docker

sudo docker run hello-world
sudo docker info

上一篇 下一篇

猜你喜欢

热点阅读