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

issue on cypress/included image as non-root #1267

Closed
serg-kritsa opened this issue Dec 28, 2024 · 3 comments
Closed

issue on cypress/included image as non-root #1267

serg-kritsa opened this issue Dec 28, 2024 · 3 comments
Assignees

Comments

@serg-kritsa
Copy link

I found issue with config file when running docker run -it --rm -v ./src:/test -w /test -u node cypress/included from VS Code. File exists in the mounted folder (p. 3 on screenshot).
2024-12-28 13 12 56

@MikeMcC399
Copy link
Collaborator

MikeMcC399 commented Dec 28, 2024

@serg-kritsa

It appears that you are using docker run directly in Microsoft Windows in a cmd terminal window. This use of Cypress Docker image examples is not covered in the documentation.

To run the example in this configuration you need to change the src directory forward slash / (Linux style) to backward slash \ (Windows style).

The example becomes then

cd examples/included-as-non-root
docker run -it --rm -v .\src:/test -w /test -u node cypress/included

or, avoiding the slash / backslash problem in docker run:

cd examples/included-as-non-root/src
docker run -it --rm -v .:/test -w /test -u node cypress/included

The README > Platforms section advises:

In the case of Windows environments, see Docker Desktop for Windows and Cypress documentation Windows Subsystem for Linux for additional information regarding Microsoft's WSL2 and WSLg subsystems. The documentation and scripts in this repository assume that Docker Desktop for Windows runs in a virtual Linux environment.

@MikeMcC399
Copy link
Collaborator

@MikeMcC399
Copy link
Collaborator

This issue is resolved:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants