It is a really easy task while I cannot find a complete command list to finish it, so I list the commands here to help others having similar request.
yum install -y yum-utils device-mapper-persistent-data lvm2 yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo yum install oraclelinux-developer-release-el7 oracle-epel-release-el7 yum-config-manager --disable ol7_developer #For PROD env, better to disable it. yum install --enablerepo=ol7_optional_latest --enablerepo=ol7_developer docker-ce docker-ce-selinux docker-ce-rootless-extras docker-compose-plugin
For Red Hat Linux 7, maybe have to enable the rhel-7-server-extras-rpms and rhel-7-server-optional-rpms repos.