Skip to content

using nerdctl in Go exec.Command is unresponsive #1454

Answered by AkihiroSuda
tianyax asked this question in Q&A
Discussion options

You must be logged in to vote

This is expected, as io.ReadAlll(stdout) stucks until stdout is closed

You may just want this:

var stdout bytes.Buffer
cmd.Stdout = &stdout

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tianyax
Comment options

Answer selected by tianyax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested component/nerdctl
2 participants
Converted from issue

This discussion was converted from issue #1449 on April 04, 2023 00:25.