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

example non-root usage doesn't work on newer images #934

Closed
mbalc opened this issue Sep 6, 2023 · 3 comments
Closed

example non-root usage doesn't work on newer images #934

mbalc opened this issue Sep 6, 2023 · 3 comments

Comments

@mbalc
Copy link

mbalc commented Sep 6, 2023

examples/included-as-non-root-alternative/Dockerfile

the approach works on 3.8.0, but doesn't work on 13.1.0

@mbalc
Copy link
Author

mbalc commented Sep 6, 2023

crash log
yarn run v1.22.19
$ cypress open --browser chrome --config-file cypress-local.config.js
[STARTED] Task without title.
[FAILED] EACCES: permission denied, open '/root/.cache/Cypress/13.0.0/binary_state.json'
An unexpected error occurred while verifying the Cypress executable.

Please search Cypress documentation for possible solutions:

https://on.cypress.io

Check if there is a GitHub issue describing this crash:

https://github.com/cypress-io/cypress/issues

Consider opening a new issue.

----------

Error: EACCES: permission denied, open '/root/.cache/Cypress/13.0.0/binary_state.json'

----------

Platform: linux-x64 (Debian - 11.7)
Cypress Version: 13.0.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@MikeMcC399
Copy link
Collaborator

@mbalc

What environment are you running Docker in and how are you starting the container?

I was experimenting lately in WSL2 and I can run with

docker run -it -v $PWD:/e2e -w /e2e --user node --entrypoint cypress cypress/included:latest run --project . --e2e --browser firefox

I didn't try examples/included-as-non-root-alternative/Dockerfile.

@MikeMcC399
Copy link
Collaborator

Closing due to inactivity.

@MikeMcC399 MikeMcC399 closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants