@@ -208,7 +208,7 @@ data ContainerDetails = ContainerDetails {
208 , containerDetailsId :: ContainerID
208 , containerDetailsId :: ContainerID
209 , containerDetailsImage :: ImageID
209 , containerDetailsImage :: ImageID
210 , mountLabel :: Text
210 , mountLabel :: Text
211− , names :: [Text]
211+ , name :: Text
212 , networkSettings :: NetworkSettings
212 , networkSettings :: NetworkSettings
213 , path :: FilePath
213 , path :: FilePath
214 , processLabel :: Text
214 , processLabel :: Text
@@ -335,7 +335,7 @@ instance FromJSON ContainerDetails where
335 id <- parseJSON v
335 id <- parseJSON v
336 image <- o .: "Image"
336 image <- o .: "Image"
337 mountLabel <- o .: "MountLabel"
337 mountLabel <- o .: "MountLabel"
338− names <- o .: "Names"
338+ name <- o .: "Name"
339 networkSettings <- o .: "NetworkSettings"
339 networkSettings <- o .: "NetworkSettings"
340 path <- o .: "Path"
340 path <- o .: "Path"
341 processLabel <- o .: "ProcessLabel"
341 processLabel <- o .: "ProcessLabel"
@@ -343,7 +343,7 @@ instance FromJSON ContainerDetails where
343 restartCount <- o .: "RestartCount"
343 restartCount <- o .: "RestartCount"
344 state <- o .: "State"
344 state <- o .: "State"
345 mounts <- o .: "Mounts"
345 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
347 parseJSON _ = fail "ContainerDetails is not an object"
347 parseJSON _ = fail "ContainerDetails is not an object"
349instance ToJSON ContainerID where
349instance ToJSON ContainerID where
@@ -752,6 +752,7 @@ instance ToJSON [Volume] where
753instance FromJSON [Volume] where
753instance FromJSON [Volume] where
754 parseJSON (JSON.Object o) = return $ map (Volume . T.unpack) $ HM.keys o
754 parseJSON (JSON.Object o) = return $ map (Volume . T.unpack) $ HM.keys o
755+ parseJSON (JSON.Null) = return []
755 parseJSON _ = fail "Volume is not an object"
756 parseJSON _ = fail "Volume is not an object"