1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-10-04 17:33:21 +08:00

Make session replication

This commit is contained in:
Marcos Lilljedahl
2016-10-08 14:26:25 +02:00
parent 02d50073c5
commit b3e7dcae3b
4 changed files with 114 additions and 21 deletions

View File

@@ -60,7 +60,7 @@ func CreateExecConnection(id string, ctx context.Context) (string, error) {
}
func AttachExecConnection(execId string, ctx context.Context) (*types.HijackedResponse, error) {
conf := types.ExecConfig{Tty: true, AttachStdin: true, AttachStderr: true, AttachStdout: true, Cmd: []string{"sh"}}
conf := types.ExecConfig{Tty: true, AttachStdin: true, AttachStderr: true, AttachStdout: true}
conn, err := c.ContainerExecAttach(ctx, execId, conf)
if err != nil {