How to install docker in linux

Test the installation environment
centos8 64
Install yum-utils toolkit
 sudo yum install -y yum-utils
Set up download library
sudo yum-config-manager \
Remove podman (conflicts with docker)
yum erase podman buildah
Install docker
sudo yum install docker-ce docker-ce-cli
Start the docker service
systemctl start docker
Start the docker service on boot
systemctl enable docker
Run the test program
sudo docker run hello-world

Was this helpful?

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.