Merge pull request #12318 from mscherer/2nd_try

Change error message for compatibility with docker
This commit is contained in:
OpenShift Merge Robot
2021-11-19 02:34:10 +01:00
committed by GitHub

View File

@ -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
}