Skip to content

Equivalent of "docker run -it $image bash" in Golang SDK #46067

Answered by corhere
esn89 asked this question in Q&A
Discussion options

You must be logged in to vote

Your ExecConfig is equivalent to docker exec -i. You would also need to set Tty: true. Bash does not write a prompt to stdout unless it is started attached to a TTY.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by neersighted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants