I. Introduction
I use Virtual Box to install CentOS system for installing CentOS on Virtual Box, refer to another article install CentOS on Virtual Box , I feel good writing, there is no longer a separate written tutorial
Two, Docker installation
After entering the CentOS system and log in.
1. Check the version centos
uname -r
docker requirement is higher than the required system kernel 3.10
If less than 3.10, use the command
yum update
Updated
2. Install Docker
yum install docker
All the way yes, use the command after installation
systemctl start docker
To start docker.
No prompt is the best tips
3. Review docker version
However, we still command
docker -v
To see docker version
4. docker set to boot service
systemctl enable docker
5. Stop docker
systemctl stop docker