aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-02-15 08:24:10 -0600
committerAtomic Bot <atomic-devel@projectatomic.io>2018-02-15 19:17:37 +0000
commita67fdeaf0d4d4cc2e5ad16027d98cd3f939ff03e (patch)
treec57788db2c6507574143d792f3a650fbfa05cc68
parent409ed259c6b3ea9122c697e9e20b4b1572f485d1 (diff)
downloadpodman-a67fdeaf0d4d4cc2e5ad16027d98cd3f939ff03e.tar.gz
podman-a67fdeaf0d4d4cc2e5ad16027d98cd3f939ff03e.tar.bz2
podman-a67fdeaf0d4d4cc2e5ad16027d98cd3f939ff03e.zip
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
-rw-r--r--cmd/podman/main.go5
1 files changed, 5 insertions, 0 deletions
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())