Skip to content

Commit

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

Signed-off-by: Michael Scherer <[email protected]>
  • Loading branch information
mscherer committed Nov 16, 2021
1 parent f031bd2 commit 422dc5e
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 422dc5e

Please sign in to comment.