mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-04 10:02:15 +00:00
runDockerAgentInContainer read stderrData after cmd.Wait() while a hand-rolled goroutine was still writing it; Wait does not wait for our own goroutine. Let exec.Cmd own the copy via a bytes.Buffer so Wait (bounded by WaitDelay) guarantees the data is complete before we read it.