summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2022-09-09 09:06:18 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2022-09-15 08:17:15 -0400
commit3508bd22fe355630453d497d905e480974a84b96 (patch)
tree42874103bb7d0329796598fc251e6e8f4fac1bdc /pkg
parent4fc18d07a6b206476421ed134f0eeec1221936c2 (diff)
downloadpodman-3508bd22fe355630453d497d905e480974a84b96.tar.gz
podman-3508bd22fe355630453d497d905e480974a84b96.tar.bz2
podman-3508bd22fe355630453d497d905e480974a84b96.zip
Add support for podman context as alias to podman system connection
Alias podman --context -> podman --connection podman context use -> podman system connection default podman context rm -> podman system connection rm podman context create -> podman system connection add podman context ls ->podman system connection ls podman context inspect ->podman system connection ls --json (For specified connections) Podman context is a hidden command, but can be used for existing scripts that assume Docker under the covers. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/rootless/rootless_linux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/rootless/rootless_linux.c b/pkg/rootless/rootless_linux.c
index 3588313c6..fb22ed221 100644
--- a/pkg/rootless/rootless_linux.c
+++ b/pkg/rootless/rootless_linux.c
@@ -235,6 +235,7 @@ can_use_shortcut ()
if (strcmp (argv[argc], "mount") == 0
|| strcmp (argv[argc], "machine") == 0
+ || strcmp (argv[argc], "context") == 0
|| strcmp (argv[argc], "search") == 0
|| (strcmp (argv[argc], "system") == 0 && argv[argc+1] && strcmp (argv[argc+1], "service") != 0))
{