From 241326a9a8c20ad7f2bcf651416b836e7778e090 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Thu, 16 Apr 2020 12:25:26 -0500 Subject: Podman V2 birth remote podman v1 and replace with podman v2. Signed-off-by: Brent Baude --- cmd/podman/platform_linux.go | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 cmd/podman/platform_linux.go (limited to 'cmd/podman/platform_linux.go') diff --git a/cmd/podman/platform_linux.go b/cmd/podman/platform_linux.go deleted file mode 100644 index eb11867cc..000000000 --- a/cmd/podman/platform_linux.go +++ /dev/null @@ -1,29 +0,0 @@ -// +build linux - -package main - -import ( - "os" - "path/filepath" - - "github.com/containers/libpod/pkg/rootless" - "github.com/sirupsen/logrus" -) - -// userRegistriesFile is the path to the per user registry configuration file. -var userRegistriesFile = filepath.Join(os.Getenv("HOME"), ".config/containers/registries.conf") - -func CheckForRegistries() { - if _, err := os.Stat("/etc/containers/registries.conf"); err != nil { - if os.IsNotExist(err) { - // If it is running in rootless mode, also check the user configuration file - if rootless.IsRootless() { - if _, err := os.Stat(userRegistriesFile); err != nil { - logrus.Warnf("unable to find %s. some podman (image shortnames) commands may be limited", userRegistriesFile) - } - return - } - logrus.Warn("unable to find /etc/containers/registries.conf. some podman (image shortnames) commands may be limited") - } - } -} -- cgit v1.2.3-54-g00ecf