You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-9Lines changed: 24 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,13 @@
1
1
# Docker Credentials from the Environment
2
2
3
-
A docker credential helper to streamline repository interactions in CI/CD pipelines, particularly Jenkins declarative Pipelines, where dynamic credentials are used.
3
+
A [Docker credential helper](https://docs.docker.com/engine/reference/commandline/login/#credential-helpers) to streamline repository interactions in scenarios where the cacheing of credentials to `~/.docker/config.json` is undesirable, including CI/CD pipelines, or anywhere ephemeral credentials are used.
4
4
5
-
In addition to handling simple credentials, it also fully support private AWS ECR repositories, including full automatic cross-account sts:AssumeRole support.
5
+
All OCI registry clients that support `~/.docker/config.json` are supported, including [`oras`](https://oras.land/), [`crane`](https://github.com/google/go-containerregistry/blob/main/cmd/crane/README.md), [`grype`](https://github.com/anchore/grype), etc.
6
+
7
+
In addition to handling basic username:password credentials, the credential helper also includes special support for:
8
+
9
+
* Amazon Elastic Container Registry (ECR) repositories using [standard AWS credentials](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html), including automatic cross-account role assumption.
10
+
*[GitHub Packages](https://ghcr.io/) via the common `GITHUB_TOKEN` environment variable.
6
11
7
12
## Environment Variables
8
13
@@ -21,7 +26,7 @@ Hyphens within DNS labels are transformed to underscores (`s/-/_/g`) for the pur
21
26
22
27
## Configuration
23
28
24
-
The `docker-credential-env` binary must be installed to `$PATH`, configured via `~/.docker/config.json`:
29
+
The `docker-credential-env` binary must be installed to `$PATH`, and is enabled via `~/.docker/config.json`:
25
30
26
31
* Handle all docker authentication:
27
32
@@ -49,25 +54,25 @@ By default, attempts to explicitly `docker {login,logout}` will generate an erro
0 commit comments