@@ -69,6 +69,13 @@ testFindImage =
6969 where
7070 imageFullName = testImageName <> ":latest"
7171
72+testListContainers :: IO ()
73+testListContainers =
74+ runDocker $
75+ do res <- listContainers defaultListOpts
76+ liftIO $ print res
77+ lift $ assert $ isRight res
78+
7279testBuildFromDockerfile :: IO ()
7380testBuildFromDockerfile = do
7481 cur <- getCurrentDirectory
@@ -170,6 +177,7 @@ integrationTests =
170177 [ testCase "Get docker version" testDockerVersion
171178 , testCase "Build image from Dockerfile" testBuildFromDockerfile
172179 , testCase "Find image by name" testFindImage
180+ , testCase "List containers" testListContainers
173181 , testCase "Run a dummy container and read its log" testRunAndReadLog
174182 , testCase "Try to stop a container that doesn't exist" testStopNonexisting
175183 ]