Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use user provided image name to launch container #4926

Merged
merged 1 commit into from
Nov 30, 2018
Merged

Commits on Nov 27, 2018

  1. Use user provided image name to launch container

    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 changes:
    1. Discrepancy in image resolution between docker and Nomad's image
    loader.
      * I checked the image creation paths in Nomad, and noticed that we
    either pulled the image or inspect the image with the user provided
    name.
    
    2. A race in image tagging where the tag is modified between image
    loading and container creation.
      * I, personally, don't think this case is cause for concern, as it is
    analogous to the task running a bit later.  As long as the image is
    still present, creating the container should be good.
    Mahmood Ali committed Nov 27, 2018
    Configuration menu
    Copy the full SHA
    2310600 View commit details
    Browse the repository at this point in the history