f0cker / crackq

CrackQ: A Python Hashcat cracking queue system
MIT License
922 stars 101 forks source link

Unknown runtime specified nvidia #15

Closed holaloc closed 4 years ago

holaloc commented 4 years ago

hi,

i tried to install it on fresh Ubuntu 18.04 server but no success

Successfully built 3f4f6d78db26 Successfully tagged nginx-crackq:latest Creating redis ... done Creating crackq ... error

ERROR: for crackq Cannot create container for service crackq: Unknown runtime specified nvidia

ERROR: for crackq Cannot create container for service crackq: Unknown runtime specified nvidia ERROR: Encountered errors while bringing up the project.

f0cker commented 4 years ago

Sounds like the nvidia-runtime-toolkit isn't installed properly. Does it show up when you run: dpkg -l | grep -i nvidia?

Also check hashcat runs ok on your host ubuntu os.

holaloc commented 4 years ago

root@pfmon:~/crackq# dpkg -l | grep -i nvidia ii libnvidia-container-tools 1.1.1-1 amd64 NVIDIA container runtime library (command-line tools) ii libnvidia-container1:amd64 1.1.1-1 amd64 NVIDIA container runtime library ii nvidia-container-toolkit 1.1.2-1 amd64 NVIDIA container runtime hook

f0cker commented 4 years ago

What versions do you have for docker and docker-compose?

I think you're experiencing this issue: https://github.com/docker/compose/issues/6691#issuecomment-515741713

Let me know if it works and I'll update the wiki. Thanks.

holaloc commented 4 years ago

Same command ?

sudo docker-compose -f docker-compose.nvidia.yml up --build

f0cker commented 4 years ago

Yeah everything the same, but you just need to modify /etc/docker/daemon.json as in the above comment and restart the docker daemon. I haven't tried it because my dev box is not using the latest docker so I don't have this issue, does it work?

holaloc commented 4 years ago

Yes working perfectly 👍

BTW I followed your install wiki so should have latest docker version

f0cker commented 4 years ago

Great, I've added a note to the install guide on the wiki and I'll close this off.