summaryrefslogtreecommitdiff
path: root/cmd/podman/registry
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-06-23 14:01:36 -0400
committerGitHub <noreply@github.com>2020-06-23 14:01:36 -0400
commit92af85fcc2cb35b04ed74072ffd54d65b936d288 (patch)
treec1424a43cc606ed11c8b0b5fb5f9f199ab0d83c5 /cmd/podman/registry
parent73514b1465fe2f79b82d017cdb11d587d6f7df3d (diff)
parent7377e578a9402a416579be92cee44c3b3786f81a (diff)
downloadpodman-92af85fcc2cb35b04ed74072ffd54d65b936d288.tar.gz
podman-92af85fcc2cb35b04ed74072ffd54d65b936d288.tar.bz2
podman-92af85fcc2cb35b04ed74072ffd54d65b936d288.zip
Merge pull request #6493 from jwhonce/wip/connection
V2 podman system connection
Diffstat (limited to 'cmd/podman/registry')
-rw-r--r--cmd/podman/registry/config.go3
-rw-r--r--cmd/podman/registry/config_tunnel.go7
2 files changed, 8 insertions, 2 deletions
diff --git a/cmd/podman/registry/config.go b/cmd/podman/registry/config.go
index 49d5bca74..a67568d73 100644
--- a/cmd/podman/registry/config.go
+++ b/cmd/podman/registry/config.go
@@ -68,7 +68,6 @@ func newPodmanConfig() {
}
}
- // FIXME: for rootless, add flag to get the path to override configuration
cfg, err := config.NewConfig("")
if err != nil {
fmt.Fprint(os.Stderr, "Failed to obtain podman configuration: "+err.Error())
@@ -83,7 +82,7 @@ func newPodmanConfig() {
podmanOptions = entities.PodmanConfig{Config: cfg, EngineMode: mode}
}
-// SetXdgDirs ensures the XDG_RUNTIME_DIR env and XDG_CONFIG_HOME variables are set.
+// setXdgDirs ensures the XDG_RUNTIME_DIR env and XDG_CONFIG_HOME variables are set.
// containers/image uses XDG_RUNTIME_DIR to locate the auth file, XDG_CONFIG_HOME is
// use for the libpod.conf configuration file.
func setXdgDirs() error {
diff --git a/cmd/podman/registry/config_tunnel.go b/cmd/podman/registry/config_tunnel.go
index bb3da947e..4f9f51163 100644
--- a/cmd/podman/registry/config_tunnel.go
+++ b/cmd/podman/registry/config_tunnel.go
@@ -2,6 +2,13 @@
package registry
+import (
+ "os"
+)
+
func init() {
abiSupport = false
+
+ // Enforce that podman-remote == podman --remote
+ os.Args = append(os.Args, "--remote")
}