Rename getDockerImages
This commit is contained in:
parent
fa06bc80dc
commit
88c361c81c
1 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@ loadImages fp = do
|
||||||
|
|
||||||
v <- decodeFile fp
|
v <- decodeFile fp
|
||||||
|
|
||||||
loaded <- dockerImages
|
loaded <- getDockerImages
|
||||||
|
|
||||||
let
|
let
|
||||||
images :: [Image]
|
images :: [Image]
|
||||||
|
@ -52,7 +52,7 @@ loadImage imgPath = withFile (imgPath) ReadMode $ \fileHandle -> do
|
||||||
ExitFailure code -> panic $ "docker load (" <> show code <> ") failed for " <> toS imgPath
|
ExitFailure code -> panic $ "docker load (" <> show code <> ") failed for " <> toS imgPath
|
||||||
|
|
||||||
|
|
||||||
dockerImages :: IO [TaggedImage]
|
getDockerImages :: IO [TaggedImage]
|
||||||
dockerImages = do
|
getDockerImages = do
|
||||||
let procSpec = Process.proc "docker" [ "images", "--filter", "dangling=false", "--format", "{{.Repository}}:{{.Tag}}" ]
|
let procSpec = Process.proc "docker" [ "images", "--filter", "dangling=false", "--format", "{{.Repository}}:{{.Tag}}" ]
|
||||||
(map toS . T.lines . toS) <$> Process.readCreateProcess procSpec ""
|
(map toS . T.lines . toS) <$> Process.readCreateProcess procSpec ""
|
||||||
|
|
Loading…
Reference in a new issue