From a67fdeaf0d4d4cc2e5ad16027d98cd3f939ff03e Mon Sep 17 00:00:00 2001 From: baude Date: Thu, 15 Feb 2018 08:24:10 -0600 Subject: No registries warning When no /etc/containers/registries.conf is found, log a warning message. Signed-off-by: baude Closes: #338 Approved by: mheon --- cmd/podman/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/podman/main.go b/cmd/podman/main.go index f18615760..c336fa629 100644 --- a/cmd/podman/main.go +++ b/cmd/podman/main.go @@ -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()) -- cgit v1.2.3-54-g00ecf