mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-11 03:15:44 +00:00
No registries warning
When no /etc/containers/registries.conf is found, log a warning message. Signed-off-by: baude <bbaude@redhat.com> Closes: #338 Approved by: mheon
This commit is contained in:
parent
409ed259c6
commit
a67fdeaf0d
1 changed files with 5 additions and 0 deletions
|
|
@ -151,6 +151,11 @@ func main() {
|
|||
Usage: "used to pass an option to the storage driver",
|
||||
},
|
||||
}
|
||||
if _, err := os.Stat("/etc/containers/registries.conf"); err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
logrus.Warn("unable to find /etc/containers/registries.conf. some podman (image shortnames) commands may be limited")
|
||||
}
|
||||
}
|
||||
if err := app.Run(os.Args); err != nil {
|
||||
if debug {
|
||||
logrus.Errorf(err.Error())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue