Jersey UniformInterfaceException when doing a POST with docker-client

When trying to post a RESTful Service via docker-client to my private docker registry i get that error. The confusing thing about that is that the input stream changes itself as you can see here. Its made somewhere in the background of jersey but i cannot find the cause for it. I guess the problem occurs somewhere inside the jersey logic

Method

  • Cannot remove docker images without tags/<none> tags
  • Run a new container based on currently running container
  • how do i add a topic to a running kafka container using docker commands?
  • How can I build a coturn server with dockerfile configuration?
  • Using docker volume with a NFS partition
  • Run Docker container with preset IP from Ansible
  • public static Service initService(String imageId) {
    
            final com.spotify.docker.client.DockerClient docker = new DefaultDockerClient(
                    "http://10.###.###.143:2375");
            String s = null;
    
            try {
    
                s = ("10.###.###.143:5000/user/ipatest&tag=latest");
    
                docker.pull(s);
    
                System.out.println(docker.toString());
    
            } catch (DockerException | InterruptedException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
    

    Exception

    com.spotify.docker.client.DockerRequestException: Request error: POST http://10.###.###.143:2375/v1.12/images/create?fromImage=10.###.###.143%3A5000%2Fuser%2Fipatest%26tag%3Dlatest: 500
                at com.spotify.docker.client.DefaultDockerClient.propagate(DefaultDockerClient.java:563)
                at com.spotify.docker.client.DefaultDockerClient.request(DefaultDockerClient.java:544)
                at com.spotify.docker.client.DefaultDockerClient.pull(DefaultDockerClient.java:345)
                at com.spotify.docker.client.DefaultDockerClient.pull(DefaultDockerClient.java:329)
                at de.fhg.ipa.vfk.eapps.commoniaas.docker.DockerServiceMgmt.initService(DockerServiceMgmt.java:43)
                at de.fhg.ipa.vfk.eapps.commoniaas.docker.DockerServiceMgmt.main(DockerServiceMgmt.java:163)
            Caused by: com.sun.jersey.api.client.UniformInterfaceException: POST http://10.###.###.143:2375/v1.12/images/create?fromImage=10.###.###.143%3A5000%2Fuser%2Fipatest%26tag%3Dlatest returned a response status of 500 Internal Server Error
                at com.sun.jersey.api.client.WebResource.handle(WebResource.java:688)
                at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
                at com.sun.jersey.api.client.WebResource$Builder.method(WebResource.java:623)
                at com.spotify.docker.client.DefaultDockerClient.request(DefaultDockerClient.java:540)
                ... 4 more
    

    It must have something to do with queryParams(String params) which belongs to WebResource (jersey)

  • How to estimate the VM resources (CPU, RAM, HDD etc) with respect to Docker image size? My images are huge, 5-10 GB
  • what's the best way to use command line applications in a docker environment?
  • Reach host with Docker Compose
  • Forwarding docker GELF logs to Logstash with Filebeat (or alternative?)
  • mysql in docker container can't run through a mounted volume on os x
  • How to implement microservices [Node.js]?
  • One Solution collect form web for “Jersey UniformInterfaceException when doing a POST with docker-client”

    The image name you’re passing to pull isn’t valid. The format for an image name is name:tag. Do this instead:

    docker.pull("10.###.###.143:5000/user/ipatest:latest");
    

    Alternatively, you can ommit the :latest, since it is implied when no other tag is specified.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.