mirror of
https://github.com/containers/podman.git
synced 2025-09-11 00:54:42 +08:00

Add the ability to cross-compile podman remote for OSX. Also, add image exists and tag to remote-client. Signed-off-by: baude <bbaude@redhat.com>
18 lines
335 B
Go
18 lines
335 B
Go
// +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")
|
|
}
|
|
}
|
|
}
|