compose icon indicating copy to clipboard operation
compose copied to clipboard

Pass --detach-keys to docker-compose

Open Gijsjan opened this issue 10 years ago • 32 comments

docker run has the option to pass an alternative sequence to detach. Currently it is mapped to ctrl-p ctrl-q, but I heavily use ctrl-p in the cli and Vim, so I would like to remap. Is that possible with Compose? If not, this is a feature request. :)

Gijsjan avatar Apr 12 '16 11:04 Gijsjan

while docker cli supports detach-keys. I do want the same feature applied in docker-compose too.

crhan avatar Jun 28 '16 06:06 crhan

+1 - this would be a very useful feature

+1

qinix avatar Jul 28 '16 11:07 qinix

+1

110y avatar Oct 15 '16 10:10 110y

+1

ihucos avatar Oct 17 '16 09:10 ihucos

:+1:

schasse avatar Nov 01 '16 10:11 schasse

+1 Question though... it's possible to save detachKeys in ~/.docker/config.json. When Compose runs Docker, why doesn't it use these configs?

jaywhy13 avatar Jan 24 '17 13:01 jaywhy13

+1

chhabrakadabra avatar Apr 01 '17 16:04 chhabrakadabra

My workaround

docker exec -it $(docker-compose ps -q mycontainer) bash

110y avatar Apr 11 '17 06:04 110y

I'm experiencing the same issue. (using Docker for Mac)

I've remapped my ~/.docker/config.json like this:

{
  "detachKeys": "ctrl-q,ctrl-q"
}

and it's working fine for normal docker run but not for docker-compose.

Would be awesome if the config file was read when using docker-compose. 🎉 Keep up the good work with this tool.

scmx avatar Apr 12 '17 08:04 scmx

+1

bitzip avatar Jul 04 '17 03:07 bitzip

Hi, is there a pr for this?

amosbird avatar Aug 05 '17 20:08 amosbird

+1

coxjonc avatar Sep 08 '17 15:09 coxjonc

+1

scrooloose avatar Oct 10 '17 14:10 scrooloose

+1 again

ihucos avatar Oct 20 '17 19:10 ihucos

+1

0xBADDCAFE avatar Oct 28 '17 17:10 0xBADDCAFE

+1

kdeloach avatar Nov 21 '17 17:11 kdeloach

Is there any movement?

+1

Nondv avatar Nov 28 '17 16:11 Nondv

Is this something that would be useful? If so I would be interested in tackling it.

summergirl21 avatar Nov 30 '17 18:11 summergirl21

Yes! Exceptionally so

On Nov 30, 2017 1:45 PM, "Madeline" [email protected] wrote:

Is this something that would be useful? If so I would be interested in tackling it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/docker/compose/issues/3311#issuecomment-348282236, or mute the thread https://github.com/notifications/unsubscribe-auth/AAvmBkikxNG_RbaBSrbHsuECRvqDSHdkks5s7ve9gaJpZM4IFTF6 .

jaywhy13 avatar Nov 30 '17 19:11 jaywhy13