grubby --args="user_namespace.enable=1" --update-kernel="$(grubby --default-kernel)"
reboot
echo "user.max_user_namespaces=15000" >> /etc/sysctl.conf
sysctl -p
yum install -y yum-utils vim
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce -y
systemctl enable docker
systemctl start docker
echo "dockremap:123000:65536" >> /etc/subuid
echo "dockremap:123000:65536" >> /etc/subgid
echo -e "{\n \"selinux-enabled\": true,\n \"userns-remap\": \"default\"\n}" > /etc/docker/daemon.json
systemctl restart docker