-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot disable detach keys by setting detach-keys to an empty string ("") #5166
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.
Comments
openshift-ci-robot
added
the
kind/bug
Categorizes issue or PR as related to a bug.
label
Feb 11, 2020
After setting detach-keys to other keys (for example: "ctrl-g, ctrl-g"), the detach keys will become ctrl-g + ctrl-g. It cannot be turned off by setting it to an empty string. |
I wonder if the OCI Runtimes set the detach keys if they are set to "" |
This isn't the runtime, they don't have any interaction - this is all Podman |
QiWang19
added a commit
to QiWang19/podman
that referenced
this issue
Feb 13, 2020
fix containers#5166 This patch enables `--detach-keys ""` to disable the feature. "ctrl-p, ctrl-q" will not work after this command. Signed-off-by: Qi Wang <[email protected]>
snj33v
pushed a commit
to snj33v/libpod
that referenced
this issue
May 31, 2020
fix containers#5166 This patch enables `--detach-keys ""` to disable the feature. "ctrl-p, ctrl-q" will not work after this command. Signed-off-by: Qi Wang <[email protected]>
debarshiray
pushed a commit
to HarryMichal/toolbox
that referenced
this issue
Sep 2, 2020
Podman sets 'ctrl-p ctrl-q' as the default key sequence for detaching a container. This breaks the ctrl-p shortcut that's equivalent to the up arrow key in GNU Readline environments like Bash and Emacs. Moreoever, toolbox containers aren't meant to be detached in the first place. Since Podman 1.8.1, it is now possible to unset the key sequence for detaching [2, 3]. [0] https://tiswww.cwru.edu/php/chet/readline/readline.html#SEC15 [1] https://www.gnu.org/software/emacs/tour/ [2] Podman commit 7c623bd41ff3d534 containers/podman#4208 [3] Podman commit ebfd253fc658ffc9 containers/podman#5166 containers#394
likan999
pushed a commit
to likan999/ppa-toolbox
that referenced
this issue
Oct 30, 2020
Podman sets 'ctrl-p ctrl-q' as the default key sequence for detaching a container. This breaks the ctrl-p shortcut that's equivalent to the up arrow key in GNU Readline environments like Bash and Emacs. Moreoever, toolbox containers aren't meant to be detached in the first place. Since Podman 1.8.1, it is now possible to unset the key sequence for detaching [2, 3]. [0] https://tiswww.cwru.edu/php/chet/readline/readline.html#SEC15 [1] https://www.gnu.org/software/emacs/tour/ [2] Podman commit 7c623bd41ff3d534 containers/podman#4208 [3] Podman commit ebfd253fc658ffc9 containers/podman#5166 containers#394
github-actions
bot
added
the
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
label
Sep 22, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
This feature cannot be disabled after setting detach_keys to an empty string ("").
See also:
#4208
Steps to reproduce the issue:
1.podman run --env TERM=$TERM --detach-keys "" -it --rm registry.fedoraproject.org/f31/fedora-toolbox:31 /bin/bash
or
podman run --env TERM=$TERM --detach-keys="" -it --rm registry.fedoraproject.org/f31/fedora-toolbox:31 /bin/bash
or
edit ~/.config/containers/libpod.conf: detach_keys = ""
2.After entering ctrl-p, bash cannot directly display the previous command. After pressing other keys (for example, "e"), ctrl-p and e will be entered into the terminal. After pressing ctrl-p + ctrl-q, it will detach from the container.
Describe the results you received:
Detach keys is still "ctrl-p, ctrl-q".
Describe the results you expected:
This feature will be disabled.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
OS: Fedora Silverblue 31
The text was updated successfully, but these errors were encountered: