How to install and setup Docker on RHEL 7/CentOS 7
To install and setup Docker on RHEL 7/CentOS 7:
- Update the system:
$ sudo yum update- Add the Docker CE repository:
$ sudo yum install -y yum-utilsrn$ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo- Install Docker CE:
$ sudo yum install docker-ce- Start Docker and enable it to start at boot:
$ sudo systemctl start docker
$ sudo systemctl enable docker- Verify Docker installation by running the hello-world image:
$ sudo docker run hello-worldAfter successful installation, you can use the docker command to interact with the Docker engine.
