libera_utils.aws.ecr_upload.DockerConfigManager#

class libera_utils.aws.ecr_upload.DockerConfigManager(override_default_config: bool = False)#

Bases: object

Context manager object, suitable for use with docker-py DockerClient.login

If override_default_config is True, dockercfg_path points to a temporary directory with a blank config. Otherwise, dockercfg_path is None, which allows DockerClient.login to use the default config location.

__init__(override_default_config: bool = False)#