Fixes #7796 - Added code to enable docker repos

Code to enable docker repos.
Merge pull request #4732 from parthaa/enable2

Fixes #7796 - Docker repositories can now be enabled