// Attach attach to a running container.
Attach attach to a running container.
// Attach attach to a running container .
func (sr *streamingRuntime) Attach(rawContainerID string, stdin io.Reader, stdout, stderr io.WriteCloser, tty bool, resize <-chan remotecommand.TerminalSize) error {
	err := ensureContainerRunning(sr.client, rawContainerID)
	if err != nil {
		return err
	}
	return sr.client.AttachContainer(rawContainerID, stdin, stdout, stderr, tty, resize)
}
func ( sr * streamingRuntime ) Attach ( rawContainerID string , stdin io . Reader , stdout , stderr io . WriteCloser , tty bool , resize <- chan remotecommand . TerminalSize ) error { err := ensureContainerRunning ( sr . client , rawContainerID ) if err != nil { return err } return sr . client . AttachContainer ( rawContainerID , stdin , stdout , stderr , tty , resize ) }
Attach attach to a running container.
Attach attach to a running container .