2019-12-03

Docker and Ctrl-P

Ctrl-P is annoying in docker, as it does not do what one might think. On bash it should scroll up, and in vim (in insert mode) search for the current word backward. It is by default used in docker to issue some commands, notably to detach the current container:
CTRL-P CTRL-Q
. Now it is possible to change it in the
.docker/config.json
file, as suggested at codelearn blog:
"detachKeys": "ctrl-@"

No comments:

Post a Comment