DenoDDeno
Powered by
BhauminB
Denoβ€’2y agoβ€’
19 replies
Bhaumin

`Deno run` command with permission flags not working inside container

I'm encountering an issue with running a Deno script inside a container (deno and chromium installed). When I execute the following command with specific permission flags:

deno run --allow-read--allow-env --allow-write --allow-run="/usr/bin/chromium" --allow-net /test/index.ts 
deno run --allow-read--allow-env --allow-write --allow-run="/usr/bin/chromium" --allow-net /test/index.ts 

it results in a timeout error. I've tried using -A (which grants all permissions) but it leads to the same error.

However, when I run the command without any flags:
deno run /test/index.ts 
deno run /test/index.ts 

Deno prompts me for permissions, and after granting them (by typing A), the script executes successfully.

Why does the script work when granting permissions manually but fail when using the corresponding flags? What could be causing this discrepancy?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Using Deno.Command to run tailwindcss with watch flag not working
KyleJuneKKyleJune / help
3y ago
Migrating `Deno.run` to `Deno.command` with `readlines`
Ed, Edd n EddyEEd, Edd n Eddy / help
3y ago
Deno.Command not working for application
DNADDNA / help
3y ago
deno inside of a docker container
hirefrankHhirefrank / help
2y ago