table of Contents
Docker Chapter One: Centos7.6 installation Docker
Prerequisites
Docker running on CentOS7, the system requires 64-bit kernel version 3.10 or more.
Kernel version
# 查看CentOS版本
cat /etc/redhat-release
# 主机和版本
uname -r
Plus software source (Ali cloud source)
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
refresh cache
yum makecache fast
Installation of the container
yum -y install docker-ce
Start Service
systemctl start docker
Test container
- View Docker installation information
- View Docker version command:
docekr version
- View Docker running information, name
docker info
- Detect the installation is correct, the command
docker run hello-world
- View Docker version command: