Normally used implicitly by method calls on the docker global variable. Sets up connection details for a Docker registry.