Skip to content

Commit 53f83df

Browse files
committed
Docker: fix showing missing image message and '--docker-auto-pull'
1 parent 6e3e8b1 commit 53f83df

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Stack/Docker.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,9 @@ inspects envOverride images =
629629
case eitherDecode (LBS.pack (filter isAscii (decodeUtf8 inspectOut))) of
630630
Left msg -> throwM (InvalidInspectOutputException msg)
631631
Right results -> return (Map.fromList (map (\r -> (iiId r,r)) results))
632-
Left e -> throwM (e :: ReadProcessException)
632+
Left (ReadProcessException _ _ _ err)
633+
| "Error: No such image" `LBS.isPrefixOf` err -> return Map.empty
634+
Left e -> throwM e
633635

634636
-- | Pull latest version of configured Docker image from registry.
635637
pull :: M env m => m ()

0 commit comments

Comments
 (0)