MCPcopy Create free account
hub / github.com/containers/common / setRegistriesConfPath

Function setRegistriesConfPath

libimage/runtime.go:43–55  ·  view source on GitHub ↗

setRegistriesConfPath sets the registries.conf path for the specified context.

(systemContext *types.SystemContext)

Source from the content-addressed store, hash-verified

41
42// setRegistriesConfPath sets the registries.conf path for the specified context.
43func setRegistriesConfPath(systemContext *types.SystemContext) {
44 if systemContext.SystemRegistriesConfPath != "" {
45 return
46 }
47 if envOverride, ok := os.LookupEnv("CONTAINERS_REGISTRIES_CONF"); ok {
48 systemContext.SystemRegistriesConfPath = envOverride
49 return
50 }
51 if envOverride, ok := os.LookupEnv("REGISTRIES_CONFIG_PATH"); ok {
52 systemContext.SystemRegistriesConfPath = envOverride
53 return
54 }
55}
56
57// Runtime is responsible for image management and storing them in a containers
58// storage.

Callers 1

RuntimeFromStoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…