Category : docker-build

I am using Docker version 20.10.7 and building below mentioned docker file: FROM maven:3.6.3-adoptopenjdk-11 COPY ./ ./ RUN addgroup –gid 900–system gtest RUN adduser –uid 9000–system –disabled-password –gecos "" –shell /bin/sh –ingroup gtest utest; RUN chmod 777 /etc/hosts USER 9000 ENTRYPOINT ["./start.sh"] Docker builds throws: #13 0.368 chmod: changing permissions of ‘/etc/hosts’: Read-only file system ..

Read more

I am using fabric8.io docker-maven-plugin. I have to specify the tags when I use mvn docker:build command. mvn docker:build -Ddocker.tags.0=someTagHere When I am running above command, below are the logs [INFO] — docker-maven-plugin:0.37.0:build (default-cli) @ complete — [INFO] Building tar: /home/user/projects/hello-world/complete/target/docker/repoName/complete/tmp/docker-build.tar [INFO] DOCKER> [repoName/complete:latest]: Created docker-build.tar in 209 milliseconds [INFO] DOCKER> Step 1 : FROM ..

Read more

I am trying to build a quarkus container with docker file, but look like that docker build is not finding the Dockerfile. I have changed the name of the Dockerfile but anyway is not working. I run: docker build src/main/docker/native.dockerfile And there is the error: docker build src/main/docker/native.dockerfile [+] Building 0.1s (1/2) => ERROR [internal] ..

Read more

I have an application in dockerfile where it is necessary to call a .sh file to download packages, but there is always an error when calling this file. My dockerfile is: FROM alpine:3.12 as builder ARG VERSION=7.16.0 ARG DISTRO=tomcat ARG SNAPSHOT=true ARG JMX_PROMETHEUS_VERSION=0.12.0 RUN apk add –no-cache bash ca-certificates maven tar wget xmlstarlet COPY settings.xml ..

Read more

How can I calculate a deterministic and reproducible checksum of a docker image, locally, without pinging any registry? The checksum should not depend on the image name or in which registry it lives. It should solely depend on the content of all layers. For example, assume the following: a given file a a dockerfile with ..

Read more