Skip to content

Commit

Permalink
Change error message for compatibility with docker
Browse files Browse the repository at this point in the history
Fix containers#12315

Signed-off-by: Michael Scherer <misc@redhat.com>
  • Loading branch information
mscherer authored and mheon committed Dec 6, 2021
1 parent 76fd7db commit 2c7b673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/handlers/compat/containers_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func CreateContainer(w http.ResponseWriter, r *http.Request) {
newImage, resolvedName, err := runtime.LibimageRuntime().LookupImage(body.Config.Image, nil)
if err != nil {
if errors.Cause(err) == storage.ErrImageUnknown {
utils.Error(w, "No such image", http.StatusNotFound, err)
utils.Error(w, "No such image", http.StatusNotFound, errors.Wrap(err, "No such image"))
return
}

Expand Down

0 comments on commit 2c7b673

Please sign in to comment.