def __init__(self, secrets=None, **kwargs):
self._set_base()<EOL>self.reverseLayers = False<EOL>self._reset_headers()<EOL>self._update_secrets()<EOL>self._update_headers()<EOL>super(ApiConnection, self).__init__(**kwargs)<EOL>
to work with nvidia container registry, we do the following:

        1. set the base to index.docker.io, or defined in environment 
        2. assume starting with v2 schema, we won't reverse layers 
        3. set headers to ask for version 2 schema first
        4. update secrets, 1st priority environment, then .docker/config.json 
        5. update headers based on secrets