Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem building docker image #61

Open
ghost opened this issue Jan 25, 2020 · 0 comments
Open

problem building docker image #61

ghost opened this issue Jan 25, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 25, 2020

Hi guys,

Hope you are all well !

When I go to docker dir, and try to build

cd docker
make build

I have the following error:

$ make build
fatal: destination path 'hashcat' already exists and is not an empty directory.
HEAD is now at 72319875 Update version to 5.1.0
docker build --build-arg USER_ID="1000" --build-arg AUTHOR="Christopher Schmitt <[email protected]>" -t gocrack/hashcat_shared -f Dockerfile.hashcat.ubuntu /home/ubuntu/gocrack/docker
Sending build context to Docker daemon  76.81MB
Step 1/13 : FROM ubuntu:xenial
 ---> 96da9143fb18
Step 2/13 : ARG AUTHOR
 ---> Using cache
 ---> 7479248e0ca6
Step 3/13 : LABEL AUTHOR=${AUTHOR}
 ---> Using cache
 ---> f8e37fbfbce8
Step 4/13 : RUN apt-get update && apt-get install -y --no-install-recommends         make         build-essential         git         patch &&     rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> fa50948a6a19
Step 5/13 : ARG USER_ID
 ---> Using cache
 ---> b2034b290192
Step 6/13 : RUN useradd --non-unique --uid $USER_ID build
 ---> Using cache
 ---> 23e24603212f
Step 7/13 : WORKDIR /src/hashcat
 ---> Using cache
 ---> 4bda10f82317
Step 8/13 : COPY files/hashcat_shared.patch .
 ---> Using cache
 ---> 23c1f6622550
Step 9/13 : COPY external/hashcat .
 ---> Using cache
 ---> dd07e5c03c80
Step 10/13 : RUN chown -R build:build /src/hashcat
 ---> Using cache
 ---> 5ddb76737898
Step 11/13 : USER build
 ---> Using cache
 ---> 28fe75b40b55
Step 12/13 : RUN ["patch", "src/Makefile", "hashcat_shared.patch"]
 ---> Using cache
 ---> bd1e06a75b8d
Step 13/13 : CMD ["make", "DESTDIR=/out", "PREFIX=", "install"]
 ---> Using cache
 ---> 7318f41819dc
Successfully built 7318f41819dc
Successfully tagged gocrack/hashcat_shared:latest
docker run --rm --net=host -e USER_ID=1000 \
		-v /home/ubuntu/gocrack/docker/dist/hashcat:/out \
		gocrack/hashcat_shared
install -m 755 -d                                                    /out/share
gcc -c -O2 -pipe -std=gnu99 -Iinclude/ -IOpenCL/ -Ideps/LZMA-SDK/C -Ideps/OpenCL-Headers -DWITH_BRAIN -Ideps/xxHash -I/ -DWITH_HWMON src/affinity.c -o obj/affinity.NATIVE.SHARED.o -fpic
gcc -c -O2 -pipe -std=gnu99 -Iinclude/ -IOpenCL/ -Ideps/LZMA-SDK/C -Ideps/OpenCL-Headers -DWITH_BRAIN -Ideps/xxHash -I/ -DWITH_HWMON src/autotune.c -o obj/autotune.NATIVE.SHARED.o -fpic
gcc -c -O2 -pipe -std=gnu99 -Iinclude/ -IOpenCL/ -Ideps/LZMA-SDK/C -Ideps/OpenCL-Headers -DWITH_BRAIN -Ideps/xxHash -I/ -DWITH_HWMON src/benchmark.c -o obj/benchmark.NATIVE.SHARED.o -fpic
gcc -c -O2 -pipe -std=gnu99 -Iinclude/ -IOpenCL/ -Ideps/LZMA-SDK/C -Ideps/OpenCL-Headers -DWITH_BRAIN -Ideps/xxHash -I/ -DWITH_HWMON src/bitmap.c -o obj/bitmap.NATIVE.SHARED.o -fpic
src/Makefile:426: recipe for target 'install_make_shared_root' failed
install: cannot change permissions of '/out/share': No such file or directory
make: *** [install_make_shared_root] Error 1
make: *** Waiting for unfinished jobs....
Makefile:19: recipe for target 'hashcat' failed
make: *** [hashcat] Error 2

Any reason why that happened ?

Cheers,
X.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants