feat(tmux): provide custom session name
This commit is contained in:
parent
d2be48ac3c
commit
833080739b
@ -27,7 +27,8 @@ start_container_if_needed() {
|
|||||||
--hostname "$WORKSPACE" \
|
--hostname "$WORKSPACE" \
|
||||||
--label auto-cleanup=true \
|
--label auto-cleanup=true \
|
||||||
-v "${XDG_RUNTIME_DIR}"/podman/podman.sock:/run/podman/podman.sock \
|
-v "${XDG_RUNTIME_DIR}"/podman/podman.sock:/run/podman/podman.sock \
|
||||||
"$IMAGE" -- "$TMUX_SESSION"
|
--entrypoint "/home/$DEV_USER/start.sh" \
|
||||||
|
"$IMAGE" "${TMUX_SESSION}"
|
||||||
elif ! podman inspect -f '{{.State.Running}}' "$WORKSPACE" | grep -q true; then
|
elif ! podman inspect -f '{{.State.Running}}' "$WORKSPACE" | grep -q true; then
|
||||||
log "⚡ Starting existing container $WORKSPACE..."
|
log "⚡ Starting existing container $WORKSPACE..."
|
||||||
podman start "$WORKSPACE" >/dev/null 2>&1
|
podman start "$WORKSPACE" >/dev/null 2>&1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user