Why do we need to install Docker? Docker is a container technology. When we use various software such as mysql and Redis, we directly use the image in the warehouse to start the software, so we don’t need to conduct a lot of troublesome operations to download the software

The installation procedure link on the official website is as follows

Docs.docker.com/engine/inst…

Switch to user root

Password: vagrant

1. Uninstall the content of the earlier version

sudo yum remove docker

docker-client

docker-client-latest

docker-common

docker-latest

docker-latest-logrotate

docker-logrotate

docker-engine

2. Install dependent tools and set up the repository

yum install -y yum-utils

$sudo yum – config – manager – add – repo download.docker.com/linux/cento… 3. Install Docker containers, clients, etc

sudo yum install docker-ce docker-ce-cli containerd.io

4. Start the docker

sudo systemctl start docker

5. Set automatic startup

sudo systemctl enable docker