setRegistriesConfPath sets the registries.conf path for the specified context.
(systemContext *types.SystemContext)
| 41 | |
| 42 | // setRegistriesConfPath sets the registries.conf path for the specified context. |
| 43 | func 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…