docker.login¶
- Hook Path:
runway.cfngin.hooks.docker.login
Docker login hook.
Replicates the functionality of the docker login CLI command.
Added in version 1.18.0.
Args¶
- dockercfg_path: str | None = None
Use a custom path for the Docker config file (
$HOME/.docker/config.jsonif present, otherwise$HOME/.dockercfg).
- ecr: dict[str, str | None] | None = None
Information describing an ECR repository. This is used to construct the repository URL. If providing a value for this field, do not provide a value for
repoorimage.If using a private registry, only
repo_nameis required. If using a public registry,repo_nameandregistry_alias.
- password: str
The plaintext password for the registry account.
Example¶
pre_deploy:
- path: runway.cfngin.hooks.docker.login
args:
ecr: true
password: ${ecr login-password}