D
D
Denis Kuznetsov2021-07-25 20:14:38
Java
Denis Kuznetsov, 2021-07-25 20:14:38

Why is the image not being built from the Dockerfile?

I got the jar via mvn install in target and after that created a simple dockerfile, this is what it looks like

FROM openjdk:11
VOLUME /tmp
COPY target/minikube-0.0.1-SNAPSHOT.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "app.jar"]

but when I try to run it from idea it gives me the following

Sending build context to Docker daemon...
[> ] 8.192kB
Failed to deploy ' Dockerfile: Dockerfile': Error while executing Request{method=POST, path=/v1.40/build?t=dennisKingsman%2Flucky-app&rm=true , body=com.intel[email protected]47f2f19b, bodyBytes=null, hijackedInput=null, headers={accept=application/json, Content-Type=application/tar, encoding=gzip}}

How to fix this error and what is causing it?
Before that, I deployed oracle DB in a container, but the connection to it fell off due to a timeout due to a proxy, so I had to create a daemon.json file in the docker folder and write the following in it
{
    "userland-proxy": false
}

maybe it has something to do with the error in which it crashes when
Sending build context to Docker daemon...
?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Kuznetsov, 2021-07-26
@DennisKingsman

in the settings of the dockerfile, I specified the name of the tag with the uppercase, you can’t do this, so the assembly fell, after fixing everything worked out

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question