podman attach/exec do not respect "detach_keys" configuration while podman run does #4556
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I'm trying to work around bug #4208 temporarily by setting "detach_keys" in .config/containers/libpod.conf to another sequence like "ctrl-q,ctrl-q" (ctrl-q being less of a problem in emacs or bash). This indeed works for interactive containers created by
podman run -ti
. However, when I enter that container from another terminal window throughpodman attach
orpodman exec
, the detach-keys sequence still seems hardcoded to "ctrl-p,ctrl-q".Steps to reproduce the issue:
Set
detach_keys = "ctrl-q,ctrl-q"
in .config/containers/libpod.confConfirm that
ctrl-q,ctrl-q
detaches from the container started bypodman run --rm -it fedora-toolbox:31 bash
(or another image),Start another container using
podman create
, such aspodman create --name ctr --rm -it fedora-toolbox:31 bash && podman start ctr && podman attach ctr
, and check thatctrl-p,ctrl-q
is still its detach sequence.Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):The text was updated successfully, but these errors were encountered: