Skip to content

Commit

Permalink
Merge pull request #305 from jorgecarleitao/patch-1
Browse files Browse the repository at this point in the history
Added Docker example to README
  • Loading branch information
rafaelpivato committed Dec 20, 2020
2 parents a87898e + 385ff18 commit 23ac3a3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,15 @@ echo "insecure-package==0.1" | safety check --stdin

*For more examples, take a look at the [options](#options) section.*


### Scan a Python-based Docker image

To scan a docker image `IMAGE_TAG`, you can run

```console
docker run -it --rm ${IMAGE_TAG} "/bin/bash -c \"pip install safety && safety check\"
```

## Using Safety in Docker

Safety can be easily executed as Docker container. It can be used just as
Expand Down

0 comments on commit 23ac3a3

Please sign in to comment.