Search code examples
spring-bootdockerdocker-composedockerfiledocker-desktop

running DockerFile of spring app is not working on windows


This is my Dockerfile

FROM openjdk:8-jdk-alpine
ARG JAR_FILES=target/*.jar
COPY ${JAR_FILES} app.jar
EXPOSE 9099
ENTRYPOINT ["java","-jar","/app.jar"]

when running the commande docker build . inside the directoery of the project i got this error :

enter image description here


Solution

    1. Could be due to insufficient space (refer : https://forums.docker.com/t/error-read-only-file-system-write-var-lib-docker-buildkit-metadata-v2-db/103637)

    2. Might be Dockerfile name issue (Dockerfile not dockerfile)