Use user provided image name to launch container #4926
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This allows the container to be tagged with a user friendly image name
(e.g.
redis:3.2
) rather than the image ID (e.g.sha256:87856cc39862cec77541d68382e4867d7ccb29a85a17221446c857ddaebca916
).Useful for human debugging, as well as some debugging and image scanning
tools.
This risks two bad side-effects
Discrepancy in image resolution between docker and Nomad's image
loader.
either pulled the image or inspect the image with the user provided
name.
A race in image tagging where the tag is modified between image
loading and container creation.
analogous to the task running a bit later. As long as the image is
still present, creating the container should be good.
Closes #2624