Adding support for docker-registry type under definitions/

Under testing, please wait to merge.