problem building docker image
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 1.3k
- Forks
- 238
- PR merge metrics
- No merged PRs in 30d
Description
Hi guys,
Hope you are all well !
When I go to docker dir, and try to build
```sh
cd docker
make build
```
I have the following error:
```bash
$ 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 " -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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in docker/Makefile and Dockerfile.hashcat.ubuntu, then review the build output around the /out mount and the external/hashcat checkout. Reproduce with `cd docker && make build`; done means the image builds and the install completes without the reported permission or missing-directory errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100