programs.docker-cli.enable
Whether to enable management of docker client config.
Type: boolean
Default:
false
Example:
true
Declared by:
programs.docker-cli.configDir
Directory to store configuration and state. This also sets $DOCKER_CONFIG.
Type: string
Default:
if config.xdg.enable && lib.versionAtLeast config.home.stateVersion "26.05" then
"$XDG_CONFIG_HOME/docker"
else
".docker"
Example:
${config.xdg.configHome}/docker
Declared by:
programs.docker-cli.contexts
Attribute set of Docker context configurations. Each attribute name becomes the context Name; overriding requires lib.mkForce. See: <https://docs.docker.com/engine/manage-resources/contexts/
Type: attribute set of (open submodule of (JSON value))
Default:
{ }
Example:
{
example = {
Metadata = { Description = "example1"; };
Endpoints.docker.Host = "unix://example2";
};
}
Declared by:
programs.docker-cli.contexts.<name>.Name
Name of the Docker context. Defaults to the attribute name (the <name> in programs.docker-cli.contexts.<name>). Overriding requires lib.mkForce.
Type: string (read only)
Declared by:
programs.docker-cli.settings
Available configuration options for the Docker CLI see: <https://docs.docker.com/reference/cli/docker/#docker-cli-configuration-file-configjson-properties
Type: JSON value
Default:
{ }
Example:
{
"proxies" = {
"default" = {
"httpProxy" = "http://proxy.example.org:3128";
"httpsProxy" = "http://proxy.example.org:3128";
"noProxy" = "localhost";
};
};
Declared by: