Skip to content

Docker Run Images with option via Golang Docker SDK #43964

Answered by cpuguy83
DineshGuptaa asked this question in Q&A
Discussion options

You must be logged in to vote

The way docker run works is it first calls the create endpoint, if the image isn't available then it returns a 404.
docker run sees that 404 and initiates a pull, then does another create.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

This discussion was converted from issue #37882 on August 15, 2022 19:46.