java - Jersey UniformInterfaceException when doing a POST with docker-client -


When trying to post a rental service through a dock-client in my personal Docker Registry, I get the error The deceptive thing about it is that the input stream changes as you can see here. It's made in the background of jerseys but I'm not getting the reason for this. I think the problem is anywhere within jersey logic

method

  public static service initService (string image id) {last com .spotify.docker .client.DockerClient Docker = New DefaultDockerClient ("http: //10.######.143: 2375"); String s = null; Try {s = ("10. ###. ### 143: 5000 / user / iptest and tag = latest"); Docker.pull (s); Println (docker.toString ()); } Hold (DockerException | blocking exception e) {// TODO self-generated blocking block e.printStackTrace (); }  

Exceptions

  com.spotify.docker.client.DockerRequestException: Request Error: Post http: // 10 # ## ### 143: ..? 2375 / v1.12 / images / making fromImage = 10 ### ### 143% 3A5000% 2Fuser% 2Fipatest% 26tag% 3Dlatest: ... 500 at com.spotify docker.client.DefaultDockerClient.propagate (DefaultDockerClient.java:563) com.spotify.docker.client.DefaultDockerClient.request (DefaultDockerClient.java:544) on com.spotify.docker.client.DefaultDockerClient.pull (on DefaultDockerClient.java: 345) com.spotify.docker.client.DefaultDockerClient.pull (DefaultDockerClient.java:329) on de.fhg.ipa.vfk.eapps.commoniaas.docker.DockerServiceMgmt.initService (DockerServiceMgmt.java:43) on de.fhg com.sun.jersey.api.client.UniformInterfaceException: post due to .ipa.vfk.eapps.commoniaas.docker.DockerServiceMgmt.main (DockerServiceMgmt.java:163) http: //10.###.### 0.143: .. 2375 / v1.12 / images / making fromImage = 10 ### ## # 0.143% 3A5000% 2Fuser% 2Fipatest% 26tag% 3Dlatest com.sun.jersey.api.client.WebResource.handle on com.sun.jersey (WebResource .java: 688) returned to a response state of 500 internal server errors. On api.client.WebResource.access $ 200 com.sun.jersey.api.client.WebResource $ Builder.method (WebResource.java:623) (WebResource.java:74) com.spotify.docker.client.DefaultDockerClient.request (DefaultDockerClient.java ... 40) ... 4 more  

This query should be done with the parameter (string parameter) that is related to WebResource (jersey)

The image whose name you are passing with bridge is not valid. The format of an image name is name: tag instead of doing it:

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

Alternatively, you can delete : the latest , because it is implied when no other tags are specified.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -