Problem scenario
You want to install Docker, but you want to be sure that the kernel is high enough to be supported.
Solution
The minimum kernel version is stated on Docker's website. As the spring time of 2017, run this script to find out if your kernel version is high enough:
a=$(uname -r)
b=$(echo $a | awk -F "." '/1/ {print $1}')
c=$(echo $a | awk -F "." '/1/ {print $2}')
if [ $b -lt 3 ]
then
echo "Kernel is not high enough"
i=$((i+1))
else # This is evaluated if Kernel is 3.x or 4.x or higher
if [ $b -eq 3 ]
then
if [ $c -lt 10 ]
then
echo "Kernel is not high enough"
else
echo "Kernel appears high enough."
fi
else
echo "Kernel appears high enough."
fi
fi
# For a more thorough test to see if your OS can handle Docker, see this article.
# For a variety of directions on how to install Docker (e.g., on CentOS/RHEL, SUSE, or Ubuntu in AWS, Azure or GCP), see this posting.