- Website installation reference manual: docs.docker.com/install/lin…
- Yum install GCC
yum -y install gcc
yum -y install gcc-c++
Copy the code
- Start the docker:
systemctl start docker
Copy the code
- Testing:
docker version
docker run hello-world
Copy the code
- Uninstall:
systemctl stop docker
yum -y remove docker-ce
rm -rf /var/lib/docker
Copy the code
Start the Docker background container (test run hello-world)
- Docker run hello-world after this prompt, Hello world will stop running, and the container will terminate automatically. \