MarkdownDescription:"If set to `true`, the provider will not check if the Docker daemon is running. This is useful for resources/data_sourcess that do not require a running Docker daemon, such as the data source `docker_registry_image`.",
Optional:true,
},
},
Blocks:map[string]schema.Block{
"registry_auth":schema.SetNestedBlock{
NestedObject:schema.NestedBlockObject{
Attributes:map[string]schema.Attribute{
"address":schema.StringAttribute{
MarkdownDescription:"Address of the registry",
Required:true,
},
"username":schema.StringAttribute{
MarkdownDescription:"Username for the registry. Defaults to `DOCKER_REGISTRY_USER` env variable if set.",
Optional:true,
},
"password":schema.StringAttribute{
MarkdownDescription:"Password for the registry. Defaults to `DOCKER_REGISTRY_PASS` env variable if set.",
MarkdownDescription:"Path to docker json file for registry auth. Defaults to `~/.docker/config.json`. If `DOCKER_CONFIG` env variable is set, the value of `DOCKER_CONFIG` is used as the path. `DOCKER_CONFIG` can be set to a directory (as per Docker CLI) or a file path directly. `config_file` has precedence over all other options.",
MarkdownDescription:"Plain content of the docker json file for registry auth. `config_file_content` has precedence over username/password.",
Optional:true,
},
"auth_disabled":schema.BoolAttribute{
MarkdownDescription:"Setting this to `true` will tell the provider that this registry does not need authentication. Due to the docker internals, the provider will use dummy credentials (see https://github.com/kreuzwerker/terraform-provider-docker/issues/470 for more information). Defaults to `false`.",
Optional:true,
},
},
},
},
},
}
}
// Configure prepares a Docker API client for data sources and resources.
// For now, configuration is handled by the SDK v2 provider through muxing.