MCPcopy Index your code
hub / github.com/docker/cli / ConfigFile

Method ConfigFile

cli/command/cli.go:135–141  ·  view source on GitHub ↗

ConfigFile returns the ConfigFile

()

Source from the content-addressed store, hash-verified

133
134// ConfigFile returns the ConfigFile
135func (cli *DockerCli) ConfigFile() *configfile.ConfigFile {
136 // TODO(thaJeztah): when would this happen? Is this only in tests (where cli.Initialize() is not called first?)
137 if cli.configFile == nil {
138 cli.configFile = config.LoadDefaultConfigFile(cli.err)
139 }
140 return cli.configFile
141}
142
143// ServerInfo returns the server version details for the host this client is
144// connected to

Callers 6

BuildKitEnabledMethod · 0.95
HooksEnabledMethod · 0.95
TestBuildWithBuilderFunction · 0.95
TestBuildkitDisabledFunction · 0.95
TestBuilderBrokenFunction · 0.95

Calls

no outgoing calls

Tested by 4

TestBuildWithBuilderFunction · 0.76
TestBuildkitDisabledFunction · 0.76
TestBuilderBrokenFunction · 0.76