Docker Community Forums

Share and learn in the Docker community.

New and Problem with build

Hello,
I’m new to Docker.
Running Desktop for Mac 2.3.0.4(46911) on macOS 10.14.6

I’ve got the following Dockerfile
FROM debian:buster-slim

ARG VERSION=1.2.300
ADD https://sever/service${VERSION} /com.unknown.service
RUN chmod +x /com.unknown.service

ENV UNKNOWN_LISTEN_ADDRESS=:80
EXPOSE 80/tcp
CMD ["/com.unknown.service"]

If I run docker -v build -f Dockerfile . access to my Adressbook is asked which I denied. Why?
How can I run the build command without access to private data?

Solved.
If I run the command in a subdirectory it works.