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

Permission denied when running k6 new using docker #3643

Closed
iskyd opened this issue Mar 15, 2024 · 5 comments
Closed

Permission denied when running k6 new using docker #3643

iskyd opened this issue Mar 15, 2024 · 5 comments
Assignees
Labels

Comments

@iskyd
Copy link

iskyd commented Mar 15, 2024

Brief summary

After pulling the image running k6 new using docker will result in "permission denied"
Adding --user root seems to solve the problem.

k6 version

k6 v0.49.0 (commit/b5328aa782, go1.21.6, linux/amd64)

OS

Linux ubuntu

Docker version and image (if applicable)

24.0.7, build afdd53b

Steps to reproduce the problem

docker pull grafana/k6
docker run --rm -i -v $PWD:/app -w /app grafana/k6 new

Expected behaviour

I expect script.js will be generated

Actual behaviour

Get the following error msg
time="2024-03-15T14:02:24Z" level=error msg="open script.js: permission denied"

@oleiade
Copy link
Member

oleiade commented Mar 18, 2024

Hi @iskyd 👋🏻

I'm unable to reproduce the issue on MacOS, and unfortunately don't have a Linux VM at hand to try and reproduce the issue. Could you @codebien and @mstoykov (I know you're under fedora, but it might still worth giving it a go?) please give it a try, and let us know if you're able to reproduce the issue? 🙇🏻

@mstoykov
Copy link
Collaborator

Have your tried adding --user $UID - this worked for another user here

@iskyd
Copy link
Author

iskyd commented Mar 22, 2024

--user $UID seems to work

@codebien
Copy link
Collaborator

codebien commented Mar 22, 2024

@oleiade we need to report back in the doc this info. Can you please open an issue there? /cc @heitortsergent

This is in the Getting started guide so I think it has a high severity https://grafana.com/docs/k6/latest/get-started/running-k6/#run-local-tests

@oleiade
Copy link
Member

oleiade commented Mar 26, 2024

I have created the document issue #1536 in the documentation repository accordingly, with the high prio label.

We should move any further discussion there, and I will therefore close this issue 👍🏻

@oleiade oleiade closed this as completed Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants