How to make control-p work in docker

From razwiki
Jump to navigation Jump to search

Docker uses c-p c-q to detach, so c-p doesn't go up to the previous command in a command like docker run -it debian bash as I'd expect.

The solution is to remap the detach key[1] as follows:

$ cat ~/.docker/config.json
  "credsStore" : "desktop",
  "auths" : {},
  "detachKeys": "ctrl-]"