Container build fails with "error: Error -1 running transaction"
See original GitHub issueDescribe the bug
Running the container build (fast-jar or not) fails
Expected behavior
Build succeeds.
Actual behavior
The build fails with the following error:
…
Cleanup: glibc;2.28-72.el8_1.1;x86_64;installed
Installing: (null)
Cleanup: setup;2.12.2-2.el8_1.1;noarch;installed
Installing: (null)
Cleanup: redhat-release;8.1-3.3.el8;x86_64;installed
Installing: (null)
Cleanup: tzdata;2019c-1.el8;noarch;installed
Installing: (null)
Cleanup: libgcc;8.3.1-4.5.el8;x86_64;installed
Installing: (null)
error: Error -1 running transaction
Error: error building at STEP "RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} && microdnf update && microdnf clean all && mkdir /deployments && chown 1001 /deployments && chmod "g+rwX" /deployments && chown 1001:root /deployments && curl https://repo1.maven.org/maven2/io/fabric8/run-java-sh/${RUN_JAVA_VERSION}/run-java-sh-${RUN_JAVA_VERSION}-sh.sh -o /deployments/run-java.sh && chown 1001 /deployments/run-java.sh && chmod 540 /deployments/run-java.sh && echo "securerandom.source=file:/dev/urandom" >> /etc/alternatives/jre/lib/security/java.security": error while running runtime: exit status 1
To Reproduce
Link to a small reproducer (preferably a Maven project if the issue is not Gradle-specific).
Or attach an archive containing the reproducer to the issue.
Steps to reproduce the behavior:
- Use the quarkus quickstart example
- Run
docker build -f src/main/docker/Dockerfile.fast-jar -t quarkus/my-project . - See error
Configuration
# Add your application.properties here, if applicable.
Screenshots (If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
- Output of
uname -aorver:Linux brocken 5.8.16-300.fc33.x86_64 #1 SMP Mon Oct 19 13:18:33 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux - Output of
java -version:openjdk version "11.0.9" 2020-10-20 OpenJDK Runtime Environment 18.9 (build 11.0.9+11) OpenJDK 64-Bit Server VM 18.9 (build 11.0.9+11, mixed mode, sharing) - GraalVM version (if different from Java):
- Quarkus version or git rev:
quarkus-maven-plugin:1.9.1.Final - Build tool (ie. output of
mvnw --versionorgradlew --version):Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: /home/…/tools/maven/apache-maven-current Java version: 11.0.9, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-11-openjdk-11.0.9.11-0.fc33.x86_64 Default locale: en_IE, platform encoding: UTF-8 OS name: "linux", version: "5.8.16-300.fc33.x86_64", arch: "amd64", family: "unix"
Additional context (Add any other context about the problem here.)
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Quarkus docker build is failing - java - Stack Overflow
Got the same error couple of days ago on a working project w/o changing any configurations. Just started failing.
Read more >Error while running container - Docker Community Forums
Hi, I am try to containerize one soft through Dockerfile, build is successful but while running container its giving exception, dockerfile ...
Read more >podman fails to build container image, if any of the package ...
podman build fails with the following message. Raw. Running transaction Updating : setup-2.8.71-10.el7.noarch 1/2 Error unpacking rpm ...
Read more >Docker builds started failing with "Container ID cannot be ...
Recently, our builds have started failing with the message: Error processing tar file(exit status 1): Container ID 165586 cannot be mapped to a...
Read more >Troubleshooting SQL Server Docker containers
If you get this error on Linux, try running the same commands prefaced with sudo . If that fails, verify the docker service...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, I can confirm, upgrading to
8.3also fixed the issue for me. Thanks @tiesebarrell for letting us know!Thanks for the information.
I’ll go ahead and close this as we have already bumbed to
8.3in https://github.com/quarkusio/quarkus/pull/13177