docker change Ctrl+p to something else?

后端 未结 5 1645
甜味超标
甜味超标 2021-01-30 16:20

I am using docker run /bin/bash to develop my container and every time I want to use Ctrl+p in a terminal or in emacs, I have to type it twice, since d

5条回答
  •  伪装坚强ぢ
    2021-01-30 16:58

    If anyone still can't get Ctrl-P to work inside a container even after changing the detach keys and calling Ctrl-P just prints out ^P in the terminal instead of going up an entry in your history, make sure the shell you're using in the container can actually handle the process signals.

    E.g. instead of docker run -it ... sh.

    Use docker run -it ... bash.

提交回复
热议问题