summaryrefslogtreecommitdiff
path: root/cmd/podman/platform_linux.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-01-13 09:34:33 -0800
committerGitHub <noreply@github.com>2019-01-13 09:34:33 -0800
commit140ae25c4d0c7ba89a0bb7ae16f81f90d20be535 (patch)
treea5e30854d0669694556fdde8de43e00d30176d9c /cmd/podman/platform_linux.go
parent9ada9722ecba373b317e1ab3e9adf716fc777d8d (diff)
parent43c6da22b976b6050f86dca50564a4c2b08caee0 (diff)
downloadpodman-140ae25c4d0c7ba89a0bb7ae16f81f90d20be535.tar.gz
podman-140ae25c4d0c7ba89a0bb7ae16f81f90d20be535.tar.bz2
podman-140ae25c4d0c7ba89a0bb7ae16f81f90d20be535.zip
Merge pull request #2141 from baude/remotetag
Add darwin support for remote-client
Diffstat (limited to 'cmd/podman/platform_linux.go')
-rw-r--r--cmd/podman/platform_linux.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/cmd/podman/platform_linux.go b/cmd/podman/platform_linux.go
new file mode 100644
index 000000000..2127923ae
--- /dev/null
+++ b/cmd/podman/platform_linux.go
@@ -0,0 +1,17 @@
+// +build linux
+
+package main
+
+import (
+ "os"
+
+ "github.com/sirupsen/logrus"
+)
+
+func CheckForRegistries() {
+ 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")
+ }
+ }
+}