dizcza/docker-hashcat

Missing package during docker-compose build

Closed this issue · 3 comments

I am trying to implement this DockerFile in a project, and I get the following error during build:

W: Failed to fetch http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu/dists/jessie/main/binary-amd64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
ERROR: Service 'worker' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"     nvidia-opencl-icd-384' returned a non-zero code: 100

Is there an alternative or workaround for this?

Before installing nvidia-opencl-icd-384 make sure you have included all the first lines from my nvidia-full Dockerfile branch.

FROM nvidia/cuda:8.0-runtime-ubuntu16.04
ENV http_proxy=
ENV https_proxy=
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /root
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository -y ppa:graphics-drivers/ppa

Try running docker build --no-cache -t hashcat-nvidia-full . in nvidia-full branch.
You can use binaries from my docker-hub.
Or inherit in your Dockerfile like so:

ARG branch=nvidia-full
FROM dizcza/docker-hashcat:$branch

So I'm trying to add this image to my existing project, when I simply inherit the docker file:

ARG branch=nvidia-full
FROM dizcza/docker-hashcat:$branch

in my existing Dockerfile, it ends up overwriting my app if placed at the end. If I place the inheritance at the beginning of my docker file, my image won't contain the hashcat directory or binary in my /.

At the end of the day, I believe this issue stems from my incompetence with Docker, and not with the project. But was looking for help either way.

binaries are placed in /hashcat dir. symlink or copy them wherever you want.
inheritance (FROM keyword) has to be at the beginning of Dockerfile.
please, read the docker docs first. the Dockerfiles in this repo are complex