docker更改Ctrl + p到别的什么? [英] docker change Ctrl+p to something else?
问题描述
我正在使用 docker run / bin / bash
来开发我的容器,每次我想使用 Ctrl + p
在终端或emacs中,我必须键入两次,因为docker使用它从容器中分离( Ctrl + p
Ctrl +
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 docker uses it to detach from a container (Ctrl+p
Ctrl+q
).
如何更改 Ctrl + p
更方便这不是用于emacs或终端设置?
How can I change Ctrl+p
to something else more convenient that is not used in emacs or in a terminal setting?
推荐答案
目前,这是不可配置的。但是,您可以在代码中更改它: https://github.com/dotcloud /docker/blob/master/utils/utils.go#L503
Currently, this is not configurable. However, you can change it within the code here: https://github.com/dotcloud/docker/blob/master/utils/utils.go#L503
当docker具有配置文件时,这将成为可配置的。
When docker will have a configuration file, this will become configurable.
这篇关于docker更改Ctrl + p到别的什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!