Questions tagged [spotify-docker-client]

36 questions
8
votes
3 answers

HttpHostConnectException: Connect to localhost:2375 [localhost/127.0.0.1] failed: Connection refused

[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:build (default) on project Bookstore: Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException:…
7
votes
1 answer

Skip maven deploy for one module

I have a multi-module maven project. Parent pom looks like this: ... pom common a b
Kartik
  • 7,677
  • 4
  • 28
  • 50
3
votes
3 answers

Can't build docker image from Dockerfile

Hello I'm trying to build a Docker image from a Docker file and get the following error: java.lang.IllegalStateException: Could not acquire image ID or digest following build at…
PSilvestre
  • 61
  • 1
  • 3
2
votes
0 answers

How to configure memory when creating container in spotify-docker-client

I followed spotify-docker-client user manual and github issues to configure specific memory but i got this error {"message":"Minimum memory limit allowed is 6MB"} i have spring boot project with below code @PostMapping(path = "/create") public…
2
votes
1 answer

Using Docker Secrets with Spotify Docker Client

I'm using Spotify's Docker-Client, but have ran into a documentation wall. I'm trying to figure out how to pass docker secrets that are already created in the environment to the containers built using docker-client. The documentation only shows…
danmit88
  • 23
  • 1
  • 4
2
votes
2 answers

Pushing images to docker registry using docker-client api

While exploring docker-client api (java) what certificates are exactly required for setting up connection to the docker daemon running on a vm. The code which I found online : { // Create a client based on DOCKER_HOST and DOCKER_CERT_PATH env…
Shubhangi Gupta
  • 53
  • 3
  • 12
1
vote
1 answer

Bad file descriptor error while implementing below groovy code

I am a newbie to Gradle and groovy.I am trying to implement worker API for parallel execution of Gradle task. The task is to save docker images.Image name and tag is obtained from a JSon file.I am using spotify docker client to connect to docker…
1
vote
0 answers

Docker java api , java - docker

Getting this error when I am running code, I am using java - docker version 3.0.14. I want to create a container using java - docker and have to pass -config API with that and also I have to run a shell script in that newly created container code…
1
vote
0 answers

How to pull docker image on remote machine using java?

I want to pull image on remote docker-machine so I found one git repo which will run docker using java. So I tried using the following way, First I configured a docker setup final DockerClient docker = DefaultDockerClient.builder() …
vimalDev
  • 412
  • 1
  • 4
  • 25
1
vote
1 answer

Spotify dockerfile could't push image, resource is deined

I am using Spotify Dockerfile maven plugin like this com.spotify dockerfile-maven-plugin 1.4.10
theanilpaudel
  • 3,348
  • 8
  • 39
  • 67
1
vote
1 answer

Creating a mysql docker container setting env variables

I am using the spotify-docker-client to create and start a mysql container for testing. It works perfect, but I am having a hard time trying to find how to set certain values to connect to the database like MYSQL_ROOT_PASSWORD, MYSQL_DATABASE,…
user1990218
  • 331
  • 1
  • 4
  • 14
1
vote
4 answers

Docker (Spotify) API - cannot connect to Docker

In my Docker (Spring Boot) application I would like to execute Docker commands. I use the docker-spotify-api (client). I get different connection errors. I start the application as part of a docker-compose.yml. This is what I tried so far on an…
tm1701
  • 7,307
  • 17
  • 79
  • 168
1
vote
2 answers

Docker image not getting image name from pom.xml

I am creating the docker image using spotify. My docker image is creating successfully but w/o a name. I am getting below on console: Image will be built without a name POM.XML org.springframework.boot
1
vote
0 answers

Is there a docker client to perform checkpoint to container

I'm using docker client(spotify/docker-client) to create a container or any other commands with docker. Now I want to take a checkpoint using the client, the problem is that client doesn't have API for that request but I can do it using cli like…
Max.Futerman
  • 1,012
  • 2
  • 9
  • 30
1
vote
2 answers

Spotify docker client not able to start container and execute command in one operation?

I have the following piece of code which enables me to start a Docker container and subsequently run a command with Stdout and Stderr attached. The issue here is that it starts the container, but of course exits the container before I'm able to exec…
Mads K
  • 847
  • 2
  • 14
  • 32
1
2 3