oras.main package

Submodules

oras.main.login module

class oras.main.login. DockerClient [source]

Bases: object

If running inside a container (or similar without docker) do a manual login

login ( username : str , password : str , registry : str , dockercfg_path : str | None = None ) dict [source]

Manual login means loading and checking the config file

Parameters :
  • registry ( oras.provider.Registry or None ) – if provided, use this custom provider instead of default

  • username ( str ) – the user account name

  • password ( str ) – the user account password

  • dockercfg_str ( list ) – docker config path

Module contents