Commit aa801bb9 authored by Тимофей Смирнов's avatar Тимофей Смирнов Committed by amegami

add shell selection for podman and docker

parent 2447aa25
......@@ -157,9 +157,13 @@ case $CMD in
;;
enter) # HELPCMD: enter in a container with ID
ID="$1"
SHELL="$2"
shift
showcmd docker exec -ti $SETLANG "$ID" bash
a= docker exec -ti $SETLANG "$ID" bash
if [ -z "$SHELL"]; then
SHELL="bash"
fi
showcmd podman exec -ti $SETLANG "$ID" "$SHELL"
a= podman exec -ti $SETLANG "$ID" "$SHELL"
;;
log|logs) # HELPCMD: print container log
docmd docker logs "$1"
......
......@@ -157,9 +157,13 @@ case $CMD in
;;
enter) # HELPCMD: enter in a container with ID
ID="$1"
SHELL="$2"
shift
showcmd podman exec -ti $SETLANG "$ID" bash
a= podman exec -ti $SETLANG "$ID" bash
if [ -z "$SHELL"]; then
SHELL="bash"
fi
showcmd podman exec -ti $SETLANG "$ID" "$SHELL"
a= podman exec -ti $SETLANG "$ID" "$SHELL"
;;
log|logs) # HELPCMD: print container log
docmd podman logs "$1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment