예제 #1
0
func (container *Container) StderrLogPipe() io.ReadCloser {
	reader, writer := io.Pipe()
	container.stderr.AddWriter(writer, "stderr")
	return utils.NewBufReader(reader)
}
예제 #2
0
파일: container.go 프로젝트: hpfast/docker
func (streamConfig *StreamConfig) StderrLogPipe() io.ReadCloser {
	reader, writer := io.Pipe()
	streamConfig.stderr.AddWriter(writer, "stderr")
	return utils.NewBufReader(reader)
}
예제 #3
0
func (container *Container) StderrPipe() (io.ReadCloser, error) {
	reader, writer := io.Pipe()
	container.stderr.AddWriter(writer, "")
	return utils.NewBufReader(reader), nil
}
예제 #4
0
파일: container.go 프로젝트: hpfast/docker
func (streamConfig *StreamConfig) StderrPipe() (io.ReadCloser, error) {
	reader, writer := io.Pipe()
	streamConfig.stderr.AddWriter(writer, "")
	return utils.NewBufReader(reader), nil
}