Installation of Docker engine:
1. Install dependencies:
yum install -y yum-utils device-mapper-persistent-data lvm2
2. Set up the repository:
yum-config-manager --add-repo https://download.docker.com/linux/cen...
3. Install the Docker engine:
yum install docker-ce or docker.io or docker
4. Start the Docker service and enable the Docker service at boot time:
systemctl enable docker
systemctl start docker
5. Verify the version of Docker and whether it is installed correctly by running
the hello-world image:
docker -v
docker run hello-world
Run Docker as a non-root user
$ sudo groupadd docker
$ sudo usermod -aG docker $USER