https://github.com/apriorit/docker-openvas
https://github.com/apriorit/docker-openvas
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/apriorit/docker-openvas
- Owner: apriorit
- License: mit
- Created: 2018-12-14T12:04:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-07T14:20:36.000Z (about 7 years ago)
- Last Synced: 2025-03-12T08:46:49.623Z (about 1 year ago)
- Language: Dockerfile
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenVAS image for Docker
| Openvas Version | Tag | OpenVAS Manager Port |
|-----------------|---------|----------------------|
| 9 | latest/9| 9390 |
## Usage
Simply run:
```
docker run -p 9390:9390 --name openvas apriorit/openvas:latest
```
This will grab the container from the docker registry and start it up. Openvas startup can take some time (4-5 minutes while NVT's are scanned and databases rebuilt), so be patient. Once you see a `It seems like your OpenVAS-9 installation is OK.` process in the logs, the web ui is good to go. Goto `https://`
```
Username: admin
Password: admin
```
To check the status of the process, run:
```
docker top openvas
```
In the output, look for the process scanning cert data. It contains a percentage.
To run bash inside the container run:
```
docker exec -it openvas bash
```
#### Specify DNS Hostname
By default, the system only allows connections for the hostname "openvas". To allow access using a custom DNS name, you must use this command:
```
docker run -d -p 443:443 -e PUBLIC_HOSTNAME=myopenvas.example.org --name openvas apriorit/openvas
```
#### Volume Support
We now support volumes. Simply mount your data directory to `/var/lib/openvas/mgr/`:
```
mkdir data
docker run -d -p 443:443 -v $(pwd)/data:/var/lib/openvas/mgr/ --name openvas apriorit/openvas
```
Note, your local directory must exist prior to running.
#### Set Admin Password
The admin password can be changed by specifying a password at runtime using the env variable `OV_PASSWORD`:
```
docker run -d -p 443:443 -e OV_PASSWORD=securepassword41 --name openvas apriorit/openvas
```
#### Update NVTs
Occasionally you'll need to update NVTs. We update the container about once a week but you can update your container by execing into the container and running a few commands:
```
docker exec -it openvas bash
## inside container
greenbone-nvt-sync
openvasmd --rebuild --progress
greenbone-certdata-sync
greenbone-scapdata-sync
openvasmd --update --verbose --progress
/etc/init.d/openvas-manager restart
/etc/init.d/openvas-scanner restart
```
### Thanks
Thanks to hackertarget for the great tutorial: http://hackertarget.com/install-openvas-7-ubuntu/
Thanks to Serge Katzmann for contributing with some great work on OpenVAS 8: https://github.com/sergekatzmann/openvas8-complete
Thanks to Mike Splain https://github.com/mikesplain/openvas-docker