These instructions apply to RHEL and CentOS hosts.
Install Docker from RHEL rather than from the official sources
yum install docker
systemctl enable docker
Set SELINUX
to enforcing
in /etc/selinux/config
and reboot.
After rebooting start Docker.
systemctl start docker
Run the following to verify that SELinux is enabled in Docker and enforcing. You should get permission denied in the last step.
docker run -it -v /test:/test busybox sh
touch /test/test
Follow the instructions in https://gist.github.com/joshwget/413f45a31e42f1f23024558ba4c6a3f6 to enable the fix for Rancher IPsec networking.