module

Mangrullo::DockerConfigAuth

Reads registry credentials from a docker config.json (usually ~/.docker/config.json), so private images and authenticated Docker Hub pulls work instead of failing with 401 / anonymous rate limits.

Only inline "auth" entries (base64 "user:password") are supported; credentials delegated to a credsStore helper binary cannot be read without invoking that helper.

Class methods

credentials_for(registry_host : String, config_path : String) : Record | Nil

Find credentials for a registry host in a docker config file

Source
default_config_path

Path to the current user's docker config, honoring DOCKER_CONFIG

Source
normalize_host(key : String) : String

Normalize the many ways a registry is spelled in config.json ("https://index.docker.io/v1/", "ghcr.io/", …) down to a bare host, mapping docker hub aliases onto one name.

Source

Nested types