-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
registries.conf.d: add stances for the registries.conf
When loading the registries.conf, allow for loading additional files from `/etc/containers/registries.conf.d`. The files are loaded in alpha-numerical order and specified fields will overwrite the previous config. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
- Loading branch information
Showing
8 changed files
with
114 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
% CONTAINERS-REGISTRIES.CONF.D(5) | ||
% Valentin Rothberg | ||
% Mar 2020 | ||
|
||
# NAME | ||
containers-registries.conf.d - directory for drop-in registries.conf files | ||
|
||
# DESCRIPTION | ||
CONTAINERS-REGISTRIES.CONF.D is a systemd-wide directory for drop-in | ||
configuration files in the `containers-registries.conf(5)` format. | ||
|
||
By default, the directory is located at `/etc/containers/registries.conf.d`. | ||
|
||
# CONFIGURATION PRECEDENCE | ||
|
||
Once the main configuration at `/etc/containers/registries.conf` is loaded, the | ||
files in `/etc/containers/registries.conf.d` are loaded in alpha-numerical order. | ||
Specified fields in a config will overwrite any previous setting. | ||
|
||
For instance, setting the `unqualified-search-registries` in | ||
`/etc/containers/registries.conf.d/myregistries.conf` will overwrite previous | ||
settings in `/etc/containers/registries.conf`. | ||
|
||
Note that all files must be specified in the same version of the | ||
`containers-registries.conf(5)` format. The entire `[[registry]]` table will | ||
always be overridden if set. | ||
|
||
# SEE ALSO | ||
`containers-registries.conf(5)` | ||
|
||
# HISTORY | ||
|
||
Mar 2020, Originally compiled by Valentin Rothberg <rothberg@redhat.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
unqualified-search-registries = ["example.com"] | ||
|
||
[[registry]] | ||
location = "base.com" | ||
insecure = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
unqualified-search-registries = ["example-overwrite.com"] | ||
|
||
[[registry]] | ||
location = "1.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[[registry]] | ||
location = "2.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters