6

The default key sequence for detaching from a running container is Ctrl+p Ctrl+q in both Docker and Kubernetes.

For Docker (e.g. docker run), I can change this with either --detach-keys on the command line or detachKeys in ~/.docker/config.json.

I can't find anything similar for when running containers via kubectl. Is it similarly configurable?

1 Answer 1

0

No, it doesn't appear to be configurable at the moment. There's some issues (closed for inactivity) at https://github.com/kubernetes/kubernetes/issues/79110 and https://github.com/kubernetes/kubernetes/issues/71765

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .