Docker monitoring: Error: mk_docker requires the docker library. Please install it on the monitored system (pip install docker)

I had to use docker (python) 2.x to make it work. The recent versions do not seem to work on Red Hat Linux Server release 6.10 (Santiago). In the original question I have mentioned the OS wrongly.