Skip to content

Commit

Permalink
feat: Support podman for image inspection
Browse files Browse the repository at this point in the history
Signed-off-by: Felicitas Pojtinger <[email protected]>
  • Loading branch information
pojntfx committed Jan 7, 2025
1 parent 20d590c commit 874d9f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ Usage: %s [OPTION...] "<COMMAND...>"
shouldPullAndTag = false
} else {
if output, err := existsCmd.CombinedOutput(); err != nil {
if strings.Contains(string(output), "Error: No such object") {
// Titlecase-insensitive comparison since `docker` and `podman-docker` differ in their casing here
if strings.Contains(strings.ToLower(string(output)), strings.ToLower("Error: No such object")) {
shouldPullAndTag = false
} else {
log.Fatalln("could not check if image already exists:", err)
Expand Down

0 comments on commit 874d9f5

Please sign in to comment.