denibertovic / docker-hs

A Haskell library for the Docker Engine API
BSD 3-Clause "New" or "Revised" License
77 stars 48 forks source link

inspectContainer fails when using unixHttpHandler #80

Closed thoaionline closed 3 years ago

thoaionline commented 3 years ago

inspectContainer is failing with

Left (DockerClientDecodeError "Error in $.NetworkSettings.Ports: parsing [] failed, expected Array, but encountered Null")

Another call createContainer seems to work fine under the same DockerT context.

thoaionline commented 3 years ago

68 looks like the cure for this, the field can be null when returned from the API.

jprider63 commented 3 years ago

Fixed with #81. Thanks for the report!