This is not possible at the moment with Docker, but it seems to be planned at 0.8, see question No. 1228 here .
However, you can use lxc-attach to launch the shell in an existing container (see the comments on the problem above), and you can then kill your freezing process:
$ lxc-attach -n FULLCONTAINERID /bin/bash
source
share