You have a Red Hat Enterprise Linux server in Azure. How do you install Docker on it?
Run these three commands:
sudo yum -y install docker
sudo groupadd docker
sudo usermod -aG docker ec2-user
For directions for install Docker to an AWS instance of RHEL, see this link. If you cannot use a yum command to install Docker but want to install it on a Red Hat derivative distribution of Linux, see this posting.