mikenowak / docker-nessus

Nessus Vulnerability Scanner in a Docker container
MIT License
10 stars 12 forks source link

Issue with mounting persistent volume #6

Closed ankursawhneyatmecs closed 6 years ago

ankursawhneyatmecs commented 6 years ago

I had issue while mounting persistent volume to "/opt/nessus". Though I didn't got any error, the host folder overwrote "/opt/nessus" on container causing following error -

docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"./opt/nessus/sbin/nessus-service\": stat ./opt/nessus/sbin/nessus-service: no such file or directory": unknown

So, I removed the mount point and am making do without it currently. Any help here would be appreciated !!

mikenowak commented 6 years ago

Hi @ankursawhneyatmecs, I need more info in order to help you out.

For starters - can you tell how are you exactly starting your container, can you share the exact command please?

ankursawhneyatmecs commented 6 years ago

@mikenowak Thank you ! Got the issue resolved. Just needed to shift the VOLUME command to file end as otherwise, the host context overwrote /opt/nessus COMMAND I AM USING : sudo docker volume create volume1 sudo docker run --privileged --name nessus1 -d -p 8834:8834 -v volume1:/opt/nessus nessus:7.0.2