Docker use thin-provision of device mapper as its default storage, therefore if we wan’t run docker on centos6, we should update kernel first. I use linux kernel 4.11 and notice these kernel options should be set:
CONFIG_DM_THIN_PROVISIONING=m CONFIG_NF_NAT=m CONFIG_NF_NAT_MASQUERADE_IPV4=m CONFIG_MEMCG=y CONFIG_IP_NF_TARGET_MASQUERADE
After build and reboot the kernel, I still can’t launch docker service, and finally find out the solution:
sudo route del -net 172.16.0.0 netmask 255.240.0.0