Fixes #7796 - Docker repositories can now be enabled

Code to enable docker repos.
I'd put a newline here, but if there's no other updates don't worry about it