@@ -208,7 +208,7 @@ data ContainerDetails = ContainerDetails {
208208 , containerDetailsId :: ContainerID
209209 , containerDetailsImage :: ImageID
210210 , mountLabel :: Text
211− , names :: [Text]
211+ , name :: Text
212212 , networkSettings :: NetworkSettings
213213 , path :: FilePath
214214 , processLabel :: Text
@@ -335,7 +335,7 @@ instance FromJSON ContainerDetails where
335335 id <- parseJSON v
336336 image <- o .: "Image"
337337 mountLabel <- o .: "MountLabel"
338− names <- o .: "Names"
338+ name <- o .: "Name"
339339 networkSettings <- o .: "NetworkSettings"
340340 path <- o .: "Path"
341341 processLabel <- o .: "ProcessLabel"
@@ -343,7 +343,7 @@ instance FromJSON ContainerDetails where
343343 restartCount <- o .: "RestartCount"
344344 state <- o .: "State"
345345 mounts <- o .: "Mounts"
346− return $ ContainerDetails appArmor args config created driver hostConfig hostnamePath hostsPath logPath id image mountLabel names networkSettings path processLabel resolveConfPath restartCount state mounts
346+ return $ ContainerDetails appArmor args config created driver hostConfig hostnamePath hostsPath logPath id image mountLabel name networkSettings path processLabel resolveConfPath restartCount state mounts
347347 parseJSON _ = fail "ContainerDetails is not an object"
348348
349349instance ToJSON ContainerID where
@@ -752,6 +752,7 @@ instance ToJSON [Volume] where
752752
753753instance FromJSON [Volume] where
754754 parseJSON (JSON.Object o) = return $ map (Volume . T.unpack) $ HM.keys o
755+ parseJSON (JSON.Null) = return []
755756 parseJSON _ = fail "Volume is not an object"
756757
757758