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

[🐛 Bug]: Dockerfile does not build. Hash is out of date. #11731

Closed
jasperstone opened this issue Mar 4, 2023 · 6 comments
Closed

[🐛 Bug]: Dockerfile does not build. Hash is out of date. #11731

jasperstone opened this issue Mar 4, 2023 · 6 comments

Comments

@jasperstone
Copy link

What happened?

When this docker file was created, it referenced the latest version of ubuntu:focal. Since the latest version of this image has moved forward, the dockerfile no longer builds because the hash doesn't match.

Suggestion:
Change line 3 to the following if you want to maintain the current from image and hash for security.
FROM ubuntu:focal-20210723@sha256:1e48201ccc2ab83afc435394b3bf70af0fa0055215c1e26a5da9b50a1ae367c9

Or change it to the following to just build with the latest image
FROM ubuntu:focal

How can we reproduce the issue?

git clone https://github.com/SeleniumHQ/selenium.git
cd .\selenium\scripts\dev-image\
docker build .

Relevant log output

[+] Building 4.3s (3/3) FINISHED
 => [internal] load build definition from Dockerfile 0.0s
 => => transferring dockerfile: 32B 0.0s
 => [internal] load .dockerignore 0.0s
 => => transferring context: 2B 0.0s
 => ERROR [internal] load metadata for docker.io/ubuntu/focal@sha256:1e48201ccc2ab83afc435394b3bf70af0fa0055215c1e  4.1s
------
 > [internal] load metadata for docker.io/ubuntu/focal@sha256:1e48201ccc2ab83afc435394b3bf70af0fa0055215c1e26a5da9b50a1ae367c9:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed

Operating System

Windows 11 22H2

Selenium version

N/A

What are the browser(s) and version(s) where you see this issue?

N/A

What are the browser driver(s) and version(s) where you see this issue?

N/A

Are you using Selenium Grid?

No

@github-actions
Copy link

github-actions bot commented Mar 4, 2023

@jasperstone, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@jasperstone jasperstone changed the title [🐛 Bug]: [🐛 Bug]: Dockerfile does not build. Hash is out of date. Mar 4, 2023
@diemol
Copy link
Member

diemol commented Mar 6, 2023

@jasperstone would you like to send a PR to update the image to the most recent release?

@jasperstone
Copy link
Author

Sure would. Do you have documentation on your PR process? I'm not a contributor on the repo.

@diemol
Copy link
Member

diemol commented Mar 9, 2023

Our contribution guidelines are here https://github.com/SeleniumHQ/selenium/blob/trunk/CONTRIBUTING.md

But in this case, I would be fine if you edit the Dockerfile and use a tag for a newer image. Then you can either build it locally or use GitPod to test it.

@symonk symonk closed this as completed in a5ac62a Mar 11, 2023
@symonk
Copy link
Member

symonk commented Mar 11, 2023

bumped the sha on this and its now building ok, thanks @jasperstone for the heads up!

alpatron pushed a commit to alpatron/selenium that referenced this issue Mar 15, 2023
Copy link

github-actions bot commented Dec 9, 2023

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2023
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

3 participants