Docker Community Forums

Share and learn in the Docker community.

Error while doing build on MAC

I am using MAC and trying to build one container but facing one issue.

dynaguest@DynaComercesMBP dyna-dev % docker-compose up

Building app-server

Step 1/11 : FROM lukatchumburidze/dynamediation:java8-mvn3.6.3

 ---> 04c656608134

Step 2/11 : WORKDIR /app

 ---> Using cache

 ---> 9b4331e87e33

Step 3/11 : VOLUME /tmp

 ---> Using cache

 ---> 36fadbc0c29d

Step 4/11 : COPY pom.xml .

 ---> Using cache

 ---> e7f7473d02dc

Step 5/11 : RUN mvn dependency:go-offline -B

 ---> Using cache

 ---> 16ae4850a759

Step 6/11 : COPY src src

 ---> Using cache

 ---> 5ac483e4387e

Step 7/11 : COPY additional/ /root/.dynamediation/

 ---> Using cache

 ---> 2b23a5d89fca

Step 8/11 : RUN mvn package -DskipTests

 ---> Using cache

 ---> cb786008f369

Step 9/11 : RUN mkdir /root/fsys

 ---> Using cache

 ---> 15e164bdc48d

Step 10/11 : COPY known_hosts /root/.ssh/known_hosts

ERROR: Service 'app-server' failed to build: COPY failed: stat /var/lib/docker/tmp/docker-builder369712323/known_hosts: no such file or directory

since I am new in Docker, so pretty much confused with this error. I did the same thing on windows, it worked perfect there. On the mac, I am facing this.

thanks in advance :slight_smile: