Skip to content

Podman/Mac OSX, audit -f, getting Permission denied error /tmp/packj #42

@chrisshino

Description

@chrisshino

Describe the bug

While testing out the container way of running packj locally on my macbook with podman I ran into this issue:

The docs say: docker run -v /tmp:/tmp/packj -it ossillate/packj:latest --help, it's also the "recommended way" currently.

When trying to audit:

podman run -v /tmp:/tmp/packj:w -it ossillate/packj:latest audit -f npm:./package.json

we get - Failed to create temp dir: [Errno 13] Permission denied: '/tmp/packj/packj_audit_dctc3110'!

Possible fixes:

  1. find out how to give the container permission to write to /tmp dir, the current User is Ubuntu, maybe we just need to give them write perms.

  2. Allow users to specify the path they want to use for writing out the audits too, in this code its currently hardcoded:

    container_mountpoint = '/tmp/packj'

it would be nice if users were able to also select where to write the audits too?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions