Note: none of this actually works – just notes for now.
dnf install 'dnf-command(config-manager)'
dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
dnf install --nobest docker-ce
# ideally you would install the latest but you'll find missing dependancies
# find which docker versions are available
dnf list docker-ce --showduplicates | sort
# copy the name of the latest version
# will look like
# docker-ce.x86_64 3:19.03.8-3.el7 docker-ce-stable
#
# removed the architecture portion (.x86_64) and add the version separated by a dash
dnf install docker-ce-3:19.03.8-3.el7
systemctl disable firewalld
systemctl enable --now docker
source: https://linuxconfig.org/how-to-install-docker-in-rhel-8
source : https://www.techrepublic.com/article/how-to-install-docker-ce-on-centos-8/
Enable on proxmox :
on host node
cat /sys/module/kvm_intel/parameters/nested # should show N
echo "options kvm-intel nested=Y" > /etc/modprobe.d/kvm-intel.conf
modprobe -r kvm_intel
modprobe kvm_intel
cat /sys/module/kvm_intel/parameters/nested # should show Y
# restart container
pct stop <container-id>
pct start <container-id>
# check inside container
egrep '(vmx|svm)' --color=always /proc/cpuinfo