aboutsummaryrefslogtreecommitdiff
path: root/cmd/podmanV2/utils/remote.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podmanV2/utils/remote.go')
-rw-r--r--cmd/podmanV2/utils/remote.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/podmanV2/utils/remote.go b/cmd/podmanV2/utils/remote.go
new file mode 100644
index 000000000..d0c8a272d
--- /dev/null
+++ b/cmd/podmanV2/utils/remote.go
@@ -0,0 +1,10 @@
+package utils
+
+import (
+ "github.com/containers/libpod/cmd/podmanV2/registry"
+ "github.com/containers/libpod/pkg/domain/entities"
+)
+
+func IsRemote() bool {
+ return registry.EngineOpts.EngineMode == entities.TunnelMode
+}