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

Docker image with sha256 doesn't work #4211

Closed
jippi opened this issue Apr 25, 2018 · 4 comments
Closed

Docker image with sha256 doesn't work #4211

jippi opened this issue Apr 25, 2018 · 4 comments

Comments

@jippi
Copy link
Contributor

jippi commented Apr 25, 2018

Nomad version

0.7.1

Issue

config {
  image = "x.dkr.ecr.x.amazonaws.com/app/x@sha256:28c4ab3b66083da058ea1f44b5e6ed0c6854a54c28e1df387fd8f21c45d00cb6
}

fails with the following error in Nomad

failed to initialize task "server" for alloc "9fddd7ed-beba-584f-3905-e445f7d3b906": Failed to pull `x.dkr.ecr.x.amazonaws.com/app/x@sha256:28c4ab3b66083da058ea1f44b5e6ed0c6854a54c28e1df387fd8f21c45d00cb6`: API error (404): {"message":"manifest for x.dkr.ecr.x.amazonaws.com/app/x:latest not found"}

while docker run works fine with the same value

docker run --rm -it x.dkr.ecr.x.amazonaws.com/app/x@sha256:28c4ab3b66083da058ea1f44b5e6ed0c6854a54c28e1df387fd8f21c45d00cb6 bash

Expected outcome

Like docker run Nomad should support format ${registry}/${image}@sha256:${sha256_value}

Currently nomad only supports ${registry}/${image}:${some_tag}@sha256:${sha256_value}

The ${some_tag} should be optional :)

@chelseakomlo
Copy link
Contributor

Thanks for reporting this. The second format you posted is the same as the first (at first glance), did you mean to post something else?

x.dkr.ecr.x.amazonaws.com/app/x@sha256:28c4ab3b66083da058ea1f44b5e6ed0c6854a54c28e1df387fd8f21c45d00cb6

x.dkr.ecr.x.amazonaws.com/app/x@sha256:28c4ab3b66083da058ea1f44b5e6ed0c6854a54c28e1df387fd8f21c45d00cb6

@jippi
Copy link
Contributor Author

jippi commented Apr 25, 2018

@chelseakomlo no, its the same format / string - i've updated OP to put emphasis on being docker run where the format works - but is rejected by nomad :)

@chelseakomlo
Copy link
Contributor

Understood, thanks for confirming.

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants