aboutsummaryrefslogtreecommitdiff
path: root/pkg/adapter/client_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/adapter/client_unix.go')
-rw-r--r--pkg/adapter/client_unix.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/pkg/adapter/client_unix.go b/pkg/adapter/client_unix.go
new file mode 100644
index 000000000..4781acd06
--- /dev/null
+++ b/pkg/adapter/client_unix.go
@@ -0,0 +1,16 @@
+// +build linux darwin
+// +build remoteclient
+
+package adapter
+
+import (
+ "fmt"
+
+ "github.com/containers/libpod/cmd/podman/remoteclientconfig"
+)
+
+func formatDefaultBridge(remoteConn *remoteclientconfig.RemoteConnection, logLevel string) string {
+ return fmt.Sprintf(
+ `ssh -T %s@%s -- /usr/bin/varlink -A \'/usr/bin/podman --log-level=%s varlink \\\$VARLINK_ADDRESS\' bridge`,
+ remoteConn.Username, remoteConn.Destination, logLevel)
+}