InspectContainer fail: Info too big for Integer format
See original GitHub issueHi, I notice a problem with inspecting containers created by a Windows Server Image specifically when they are down. The problem is on the “Exit code” wich is too long than the format “Integer” can support so I think it have to be changed in “long”.
I’m using the last stable version of docker-java (3.1.1):
Here some info:
Container State info from docker bash
> "Id": "93a53b5c7992f9a2e3c96c97effebf9831e4068c25fb12957c83e919a246f11e",
"Created": "2019-10-10T10:07:11.834181Z",
"Path": "C:\\ServiceMonitor.exe",
"Args": [
"w3svc"
],
"State": {
"Status": "exited",
"Running": false,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 0,
"ExitCode": 3221225786, <---------
"Error": "",
"StartedAt": "2019-10-10T14:43:40.8936086Z",
"FinishedAt": "2019-10-10T16:43:57.0633607+02:00"
},
Error from “dockerClient.inspectContainerCmd(containerId.exec())”:
com.fasterxml.jackson.databind.JsonMappingException: Numeric value (3221225786) out of range of int at [Source: (byte[])“{“Id”:“93a53b5c7992f9a2e3c96c97effebf9831e4068c25fb12957c83e919a246f11e”,“Created”:“2019-10-10T10:07:11.834181Z”,“Path”:“C:\ServiceMonitor.exe”,“Args”:[“w3svc”],“State”:{“Status”:“exited”,“Running”:false,“Paused”:false,“Restarting”:false,“OOMKilled”:false,“Dead”:false,“Pid”:0,“ExitCode”:3221225786,“Error”:”",“StartedAt”:“2019-10-10T14:43:40.8936086Z”,“FinishedAt”:“2019-10-10T16:43:57.0633607+02:00”},“Image”:“sha256:8802176f1984cab0eef41e6ba81dfa643b51cf91752577df64e3329df047a7ed”,“ResolvConfPat”[truncated 3135 bytes]; line: 1, column: 290] (through reference chain: com.github.dockerjava.api.command.InspectContainerResponse[“State”]->com.github.dockerjava.api.command.InspectContainerResponse$ContainerState[“ExitCode”])
Thanks.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:12 (4 by maintainers)
I will fix it ASAP in the upcoming 3.2.0 version
I’m having the same problem, but in my case it’s InspectExecResponse and “Pid” field.
I think both exitCode and pid in InspectExecResponse should be converted to Longs.