Docker eats Control-p

I realized that I had to type Control-P twice when I connected to a docker container and was using a command line.

I’ve created a docker config file under root home directory:

// ~root/.docker/config.json - don't type this
{
    "detachKeys": "ctrl-@"
}

I am not using control-@. This solved the problem.