Skip to content

Permission denied when running the docker command #2

Description

@pythops

Describe the bug

Permission issue when running with the rootless docker or podman.

To reproduce

  1. Have rootless podman configured
  2. Run the following command
podman run --rm -it -v "$(pwd)":/app "orhunp/linuxwave:${TAG:-latest}"

You'll get the error

Reading 96 bytes from /dev/urandom
Saving to output.wav
Error occurred: error.AccessDenied

Expected behavior

Having output.wav in the current directory

Software information

  • OS: Arch linux
  • Rootless podman

Additional context

Solution
Remove those lines from the Dockerfile

chown 1000:1000 output.wav
USER 1000:1000

Note
You can remove -it option for docker or podman, it's not needed

Nice tool, GJ 💯

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions