Installing Docker on CentOS/RHEL

Requirements, recommendations and procedures for installing Docker CE on CentOS/RHEL

Customer Advisory

A recently discovered bug in Docker 17.x’s handling of cgroups kernel memory controller (kmem) causes instability for the entire system when the kmem accounting feature is activated. Customers may notice tasks or commands getting stuck indefinitely and kernel-related error messages in the system logs. Mesosphere DC/OS customers and community members who utilize RedHat or CentOS as their base operating systems are strongly advised to install and use RedHat’s fork of Docker 1.13. This fork of Docker does not require an RHN subscription.

NOTE: More specific details on the Docker bug and mitigation instructions are located here.

Requirements and Recommendations

Be sure that Docker’s live-restore setting is disabled. It should be absent or set to false in a Docker configuration file.

Before installing Docker on CentOS/RHEL, review the general requirements and recommendations for running Docker on DC/OS and the following CentOS/RHEL-specific recommendations:

NOTE: In modern versions of Centos and RHEL, ftype=1 is the default. The xfs_info utility can be used to verify that ftype=1.

mkfs -t xfs -n ftype=1 /dev/sdc1