Installation Centos Docker-CE in VirtualBox

Installation Centos Docker-CE in VirtualBox

Because of the need to test environment, a CentosOS 7 installed.

After installation found no IP, I thought it was because NAT setup issues.

The network is set to bridging, in use ip addr or not.

After the original is because the default does not start, you need to start can.

vi / etc / sysconfig / network- scripts / ifcfg-enp0s3
modified ONBOOT = yes then systemctl restart network can obtain the IP

Then install the docker-ce

First update the system sudo yum update

Install the necessary dependencies.

# step 1: 安装必要的一些系统工具
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
# Step 2: 添加软件源信息
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
# Step 3: 更新并安装 Docker-CE
sudo yum makecache fast
sudo yum -y install docker-ce
# Step 4: 开启Docker服务
sudo service docker start

Guess you like

Origin www.cnblogs.com/F4NNIU/p/10937731.html