If you are running an interactive Bash shell in a Docker container running Linux, the Ctrl+P key does not perform the previous-history command, which fetches the previous entry in the command history entry and repeats it at the current prompt. But if you press Ctrl+P twice, it happens to work.
The reason for this is that Docker's interactive mode assigns "Ctrl+P Ctrl+Q" to detach from the interactive Docker session. To fix this, I customize the detach keys using --detach-keys command line option:
$ docker run -it --detach-keys 'ctrl-z,ctrl-q' ubuntu bash
Ctrl+P now works as expected!
Subscribe to:
Post Comments (Atom)
1 comment:
Titanium S rings: A beginner's guide to metal - TITNIA
In ancient titanium bars China, titanium trim walmart the world of iron ore is very much a matter of time before iron ore was used by ion titanium hair color many titanium rainbow quartz of the grade 5 titanium world's largest
Post a Comment