67 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
533
views
java.lang.ClassNotFoundException: org.apache.hc.client5.http.ssl.TlsSocketStrategy when using docker-java API 3.5.0
I'm trying to use the Docker-Java API. Following the instruction in https://github.com/docker-java/docker-java/blob/main/docs/getting_started.md I build a DockerClientConfig and try to build a ...
0
votes
1
answer
448
views
Why is the Docker Java client unable to connect to the Docker daemon?
I’m trying to connect my Spring Boot application to the Docker daemon using the docker-java library, but I’m encountering the following error:
java.lang.RuntimeException: org.apache.hc.client5.http....
0
votes
1
answer
164
views
Why can't I push an image to a local Docker registry started with Testcontainers?
I'm trying to create a local Docker registry using Testcontainers and push an image programatically to it. However, I'm getting a connection refused error when attempting to push the image. The first ...
0
votes
1
answer
342
views
Manage docker with docker-java, the volume mapping seems not working
Environment:
Fedora 39
openjdk-17
docker 25.01
My purpose is to run ffmpeg to merge Multiple video files into a single file, and i choose to use docker(manage by com.github.docker-java:docker-java:3.3....
0
votes
1
answer
351
views
LinkageError after adding javax.ws.rs-api to Gradle build in Spring Boot 3.2 Kotlin project
Initial Error:
Encountered a NoClassDefFoundError when building with Docker Java API on a spring boot "3.2.1" Kotlin 1.9.21 project
java.lang.NoClassDefFoundError: javax/ws/rs/core/...
0
votes
0
answers
166
views
Wait for the completion of the command execution launched via the docker-java library
I have a docker-swarm stack with a number of services, one of which is a java application container that needs to launch a command in the shell of another container. The two services are deployed on ...
1
vote
1
answer
403
views
docker-java equivalent for 'docker exec {container name} touch test.txt'
I am trying to run an exec command on an already running docker container on a remote host using java.
I am successfully able to run the exec command from the CLI of the host machine using
docker exec ...
1
vote
1
answer
211
views
ocrmypdf not working when using the docker image and the docker java client over a binding volume
When running an ocrmypdf docker container, all I get is the following message:
ocrmypdf: error: unrecognized arguments: 64ee37a6fc66cf591ce4a35f-1.png_OCR.pdf
This is what my docker inspect container ...
1
vote
1
answer
2k
views
java.lang.NoClassDefFoundError: com/github/dockerjava/api/command/LoadImageAsyncCmd
I am trying to create a Docker client with the Docker Java API, but I get a ClassNotFoundException when running my code. I am following this Baeldung guide,
but I am using the latest version of docker-...
0
votes
1
answer
231
views
Is it possible to execute custom commands with the Docker Java API?
Can the Docker Java client library (https://github.com/docker-java/docker-java) be used to execute custom commands?
I want to use the library to check if Docker images I need to download are ...
1
vote
1
answer
3k
views
Use CMD parameters in distroless image
I am using azul/zulu-openjdk-distroless:17.0.6 image and want to execute the java command with parameters but it fails at the runtime
Here is my docker image:
FROM alpine:3.17.3 as build-env
ARG ...
3
votes
1
answer
2k
views
How can I parse an existing docker container into testcontainers?
I have an existing PostGres docker container running in the background. Is it possible to create a GenericContainer that will parse the existing PostGres container by taking in the container ID, ...
3
votes
2
answers
5k
views
Testcontainers with sftp image throws Error on "nc not found" or "Address Not Available"
I have this very simple code for running my integration test:
(using Testcontainer artifact version 1.16.2)
Note: I have tested whether this port in test is available before running the test case.
@...
0
votes
1
answer
378
views
Running Docker command in java
I'm trying to run this command in docker trough java, but i don't know why it only works when i execute the command in the host machine and not trough java (when execute on java it doesn't add or say ...
0
votes
1
answer
682
views
docker-Java stop timeout
i'm using the java-docker client from here: https://github.com/docker-java/docker-java.
I trying to figure out how to set the stop timeout for the docker stop command.
So i'm using in java the method ...