ok { // error is handled by createStreams return } defer ctx.conn.Close() // executor的实现是结构体criAdapter // 本质是调用docker client访问docker daemon的/exec接口 err := executor.ExecInContainer(podName, uid, container, cmd, ctx.stdinStream, ctx.stdoutStream, ctx.stderrStream, ctx.tty...