@@ -102,7 +102,7 @@ data Endpoint =
102102 VersionEndpoint
103103 | ListContainersEndpoint ListOpts
104104 | ListImagesEndpoint ListOpts
105− | CreateContainerEndpoint CreateOpts
105+ | CreateContainerEndpoint CreateOpts (Maybe ContainerName)
106106 | StartContainerEndpoint StartOpts ContainerID
107107 | StopContainerEndpoint Timeout ContainerID
108108 | KillContainerEndpoint Signal ContainerID
@@ -204,7 +204,7 @@ data ContainerDetails = ContainerDetails {
204204 , containerDetailsId :: ContainerID
205205 , containerDetailsImage :: ImageID
206206 , mountLabel :: Text
207− , name :: Text
207+ , names :: [Text]
208208 , networkSettings :: NetworkSettings
209209 , path :: FilePath
210210 , processLabel :: Text
@@ -331,7 +331,7 @@ instance FromJSON ContainerDetails where
331331 id <- parseJSON v
332332 image <- o .: "Image"
333333 mountLabel <- o .: "MountLabel"
334− name <- o .: "Name"
334+ names <- o .: "Names"
335335 networkSettings <- o .: "NetworkSettings"
336336 path <- o .: "Path"
337337 processLabel <- o .: "ProcessLabel"
@@ -339,7 +339,7 @@ instance FromJSON ContainerDetails where
339339 restartCount <- o .: "RestartCount"
340340 state <- o .: "State"
341341 mounts <- o .: "Mounts"
342− return $ ContainerDetails appArmor args config created driver hostConfig hostnamePath hostsPath logPath id image mountLabel name networkSettings path processLabel resolveConfPath restartCount state mounts
342+ return $ ContainerDetails appArmor args config created driver hostConfig hostnamePath hostsPath logPath id image mountLabel names networkSettings path processLabel resolveConfPath restartCount state mounts
343343 parseJSON _ = fail "ContainerDetails is not an object"
344344
345345instance ToJSON ContainerID where