Pass --detach-keys to docker-compose
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. :)
while docker cli supports detach-keys. I do want the same feature applied in docker-compose too.
+1 - this would be a very useful feature
+1
+1
+1
:+1:
+1 Question though... it's possible to save detachKeys in ~/.docker/config.json. When Compose runs Docker, why doesn't it use these configs?
+1
My workaround
docker exec -it $(docker-compose ps -q mycontainer) bash
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.
+1
Hi, is there a pr for this?
+1
+1
+1 again
+1
+1
Is there any movement?
+1
Is this something that would be useful? If so I would be interested in tackling it.
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 .