Questions tagged [spotify-docker-client]

36 questions
0
votes
1 answer

Cannot copy file to Docker container via Spotify Docker Client

I want to copy file to the not running container via Docker Client by Spotify - File is created like - File.createTempFile("olb-", "-temp").deleteOnExit().writeText("some text") When I…
Lukas Forst
  • 802
  • 1
  • 8
  • 25
0
votes
0 answers

Reading container logs with 'follow' flag, thread is blocked forever

Given backend, which processes user requests of reading container logs(with follow option). Following approach is used: Future f = threadPool.submit(() -> { try { while (logStream.hasNext()) { LogMessage msg = logStream.next(); …
Flame239
  • 1,274
  • 1
  • 8
  • 20
0
votes
2 answers

Disable IPv6 in Docker container from Java

I need to disable IPv6 when starting a Docker container from Java code. Using the command line, it is as follows: docker run --sysctl net.ipv6.conf.all.disable_ipv6=1 ... Is it possible to do the same but using Java with Spotify's docker-client? As…
Boni García
  • 4,618
  • 5
  • 28
  • 44
0
votes
0 answers

Does pulling a public image from Docker Hub require authentication?

I have a CI/CD pipeline running. During the run, I'm using the Spotify docker-maven-plugin to do the Docker build. Recently my builds have begun failing when it tries to pull Payara Micro version 172 as the first line in my Dockerfile: FROM…
Laird Nelson
  • 15,321
  • 19
  • 73
  • 127
0
votes
0 answers

Java Docker client in JUnit test cannot connect to daemon

I am attempting to automatically manage my application in a Docker container using the Spotify Docker Client for my integration tests with Docker for Mac. DockerClient docker = new DefaultDockerClient.fromEnv().build(); HostConfig hostConfig =…
ThisIsNoZaku
  • 2,213
  • 2
  • 26
  • 37
0
votes
0 answers

How to make docker cli use dockerhub v2 registry url

When I try to push an image like docker push jikuma/dockercomposetest it is resolved as docker.io/jikuma/dockercomposetest repository url. I want to use v2 docker hub registry url. How can I do that. What should be my registry url. And how to…
Jitendra
  • 732
  • 1
  • 9
  • 29
1 2
3