@@ -102,7 +102,7 @@ data Endpoint =
102 VersionEndpoint
102 VersionEndpoint
103 | ListContainersEndpoint ListOpts
103 | ListContainersEndpoint ListOpts
104 | ListImagesEndpoint ListOpts
104 | ListImagesEndpoint ListOpts
105− | CreateContainerEndpoint CreateOpts
105+ | CreateContainerEndpoint CreateOpts (Maybe ContainerName)
106 | StartContainerEndpoint StartOpts ContainerID
106 | StartContainerEndpoint StartOpts ContainerID
107 | StopContainerEndpoint Timeout ContainerID
107 | StopContainerEndpoint Timeout ContainerID
108 | KillContainerEndpoint Signal ContainerID
108 | KillContainerEndpoint Signal ContainerID
@@ -204,7 +204,7 @@ data ContainerDetails = ContainerDetails {
204 , containerDetailsId :: ContainerID
204 , containerDetailsId :: ContainerID
205 , containerDetailsImage :: ImageID
205 , containerDetailsImage :: ImageID
206 , mountLabel :: Text
206 , mountLabel :: Text
207− , name :: Text
207+ , names :: [Text]
208 , networkSettings :: NetworkSettings
208 , networkSettings :: NetworkSettings
209 , path :: FilePath
209 , path :: FilePath
210 , processLabel :: Text
210 , processLabel :: Text
@@ -331,7 +331,7 @@ instance FromJSON ContainerDetails where
331 id <- parseJSON v
331 id <- parseJSON v
332 image <- o .: "Image"
332 image <- o .: "Image"
333 mountLabel <- o .: "MountLabel"
333 mountLabel <- o .: "MountLabel"
334− name <- o .: "Name"
334+ names <- o .: "Names"
335 networkSettings <- o .: "NetworkSettings"
335 networkSettings <- o .: "NetworkSettings"
336 path <- o .: "Path"
336 path <- o .: "Path"
337 processLabel <- o .: "ProcessLabel"
337 processLabel <- o .: "ProcessLabel"
@@ -339,7 +339,7 @@ instance FromJSON ContainerDetails where
339 restartCount <- o .: "RestartCount"
339 restartCount <- o .: "RestartCount"
340 state <- o .: "State"
340 state <- o .: "State"
341 mounts <- o .: "Mounts"
341 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
343 parseJSON _ = fail "ContainerDetails is not an object"
343 parseJSON _ = fail "ContainerDetails is not an object"
345instance ToJSON ContainerID where
345instance ToJSON ContainerID where