Skip to content

Creates a `config.json` secret with `docker login` credentials

License

Notifications You must be signed in to change notification settings

fermayo/docker-login-secret

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fermayo/docker-login-secret

Creates a config.json secret with docker login credentials

Usage

docker run -it -v /var/run/docker.sock:/var/run/docker.sock fermayo/docker-login-secret [REGISTRY]

After logging in, creates a secret called config.json with the credentials in the format:

{
	"auths": {
		"https://index.docker.io/v1/": {
			"auth": "<base64encoded credentials>"
		}
	}
}

In combination with an environment variable like DOCKER_CONFIG=/run/secrets, this is useful for services with the docker CLI to have registry access for pushing or pulling private images.

About

Creates a `config.json` secret with `docker login` credentials

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages