How to make control-p work in docker: Difference between revisions

From razwiki
Jump to navigation Jump to search
(Created page with "Docker uses <code>c-p c-q</code> to detach, so <code>c-p</code> doesn't go up to the previous command in a command like <code>docker run -it debian bash</code> as I'd expect....")
 
(No difference)

Latest revision as of 16:19, 3 December 2021

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-]"
}