1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-14 10:17:26 +08:00

Change detach keys so other programs like nano work

Fixes #52
This commit is contained in:
Marcos Lilljedahl 2016-12-21 19:09:22 -03:00
parent 6c651abfae
commit 440ba09061

View File

@ -166,7 +166,7 @@ func DeleteNetwork(id string) error {
func CreateAttachConnection(id string, ctx context.Context) (*types.HijackedResponse, error) {
conf := types.ContainerAttachOptions{true, true, true, true, "ctrl-x,ctrl-x", true}
conf := types.ContainerAttachOptions{true, true, true, true, "ctrl-^,ctrl-^", true}
conn, err := c.ContainerAttach(ctx, id, conf)
if err != nil {
return nil, err