Downgrade docker on centos 7

Hey Guys,

I searched and could not find a satisfactory response. So apologies if this has already been discussed and resolved.

What is the best way to downgrade docker on a Centos 7 machine on AWS? I currently have docker version 1.12.6 running on it and I want to downgrade to docker 1.12.3

I would have thought doing something like yum downgrade docker-engine-1.12.3-1.el7.centos would be enough but I am not sure if that takes care of docker dependencies as well.

Any info appreciated.

Best Regards,
Gopinath