diff --git a/docker.cabal b/docker.cabal
--- a/docker.cabal
+++ b/docker.cabal
@@ -1,5 +1,5 @@
 name:                docker
-version:             0.6.0.4
+version:             0.6.0.5
 synopsis:            An API client for docker written in Haskell
 description:         See API documentation below.
 homepage:            https://github.com/denibertovic/docker-hs
diff --git a/src/Docker/Client/Types.hs b/src/Docker/Client/Types.hs
--- a/src/Docker/Client/Types.hs
+++ b/src/Docker/Client/Types.hs
@@ -107,6 +107,7 @@
 import           Data.Aeson.Types    (defaultOptions, fieldLabelModifier)
 import           Data.Char           (isAlphaNum, toUpper)
 import qualified Data.HashMap.Strict as HM
+import           Data.Maybe          (fromMaybe)
 import           Data.Monoid         ((<>))
 import           Data.Scientific     (floatingOrInteger)
 import           Data.Text           (Text)
@@ -1159,7 +1160,7 @@
                     port <- parseIntegerText port'
                     portType <- parseJSON $ JSON.String portType'
                     acc <- accM
-                    hps <- parseJSON v
+                    hps <- fromMaybe [] <$> parseJSON v
                     return $ (PortBinding port portType hps):acc
                 _ -> fail "Could not parse PortBindings"
     parseJSON (JSON.Null) = return []
diff --git a/tests/tests.hs b/tests/tests.hs
--- a/tests/tests.hs
+++ b/tests/tests.hs
@@ -206,6 +206,13 @@
       testCase "Testing Bind with WriteOnly" $
         JSON.String "/foo:/bar:rw" @=? JSON.toJSON (Bind "/foo" "/bar" (Just ReadWrite))
 
+testPortBindingJSON :: TestTree
+testPortBindingJSON = testGroup "Testing PortBinding JSON" [testSample1]
+  where
+    testSample1 =
+      testCase "Test decoding null hostPorts" $ assert $ (JSON.decode "{ \"22/tcp\": null }" :: Maybe [PortBinding]) == Just [PortBinding 22 TCP []]
+
+
 testEntrypointJson :: TestTree
 testEntrypointJson = testGroup "Testing ContainerConfig JSON" [testSample1, testSample2, testSample3, testSample4, testSample5]
   where
@@ -273,6 +280,7 @@
     , testBindsJson
     , testLabelsJson
     , testLogDriverOptionsJson
+    , testPortBindingJSON
     , testEntrypointJson
     , testEnvVarJson
     , testNetworkingConfigJson
