Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrKeyNotFound indicates that the signing key is not found. ErrKeyNotFound = errors.New("signing key not found") )
Functions ¶
func IsRegistryInsecure ¶
IsRegistryInsecure checks whether the registry is in the list of insecure registries.
func LoadConfigOnce ¶
LoadConfigOnce returns the previously read config file. If previous config file does not exist, it reads the config from file or return a default config if not found. The returned config is only suitable for read only scenarios for short-lived processes.
Types ¶
type DockerConfigFile ¶
type DockerConfigFile struct {
CredentialsStore string `json:"credsStore,omitempty"`
CredentialHelpers map[string]string `json:"credHelpers,omitempty"`
}
DockerConfigFile is the minimized configuration of the Docker daemon, only credentails store related configs are included
func LoadDockerConfig ¶
func LoadDockerConfig() (*DockerConfigFile, error)
Load reads the configuration files in the given directory, and sets up the auth config information and returns values.
Click to show internal directories.
Click to hide internal directories.