Skip to content

Commit

Permalink
Fix non-root directory permission denied error (#578)
Browse files Browse the repository at this point in the history
* Fix non-root directory permission denied error

* Updated Readme

* Fixed Readme

* Updated readme to use latest tag for QA error

* updated Dockerfile

* Moved error to others section
  • Loading branch information
rahul2393 committed Jul 30, 2020
1 parent 8eb9df8 commit 20f2bae
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1955,6 +1955,19 @@ Try again with `--reset` option:
```
$ trivy image --reset
```

### Error: FATAL unable to initialize the cache: failed to create cache dir: mkdir /root/.cache: permission denied

```
$ docker run --rm -v $PWD:/root/.cache/ aquasec/trivy:latest --cache-dir /root/.cache image centos:7
2020-07-29T15:02:54.435Z FATAL unable to initialize the cache: failed to create cache dir: mkdir /root/.cache: permission denied
```

Try:

```
$ docker run --rm -v $PWD:/tmp/.cache/ aquasec/trivy:latest --cache-dir /tmp/.cache image centos:7
```
---

# Credits
Expand Down

0 comments on commit 20f2bae

Please sign in to comment.