Docker is neither an IaaS or PaaS. It is not as flexible as IaaS. When Docker is combined with an IaaS, the benefits of PaaS can be extracted without getting any limitations along with it. This helps in improving a developer’s overall experience.
For PaaS, Docker is just an enabler and used as building blocks for the PaaS system.