Skip to content

Commit

Permalink
Added feature to run clamav docker container as non-root user.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsundriyal authored and micahsnyder committed Feb 21, 2024
1 parent c169ca8 commit 343802a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/manual/Installing/Docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,18 @@ To do so, you have two options:
If you're thinking about running multiple containers that share a single database volume, [here are some notes on how this might work](#multiple-containers-sharing-the-same-mounted-databases).

### Running ClamD using non-root user using --user and --entrypoint

You can run a container using a non-root user "clamav" with unprivileged entrypoint script.
Just run:
```bash
docker run -it --rm \
--user "clamav"
--entrypoint /init-unprivileged
--name "clam_container_01" \
clamav/clamav:unstable_base
```

## Running Clam(D)Scan

Scanning files using `clamscan` or `clamdscan` is possible in various ways with Docker. This section briefly describes them, but the other sections of this document are best read before hand to better understand some of the concepts.
Expand Down

0 comments on commit 343802a

Please sign in to comment.