mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
Supports import&run--signature-policy
Enables podman create, pull, run, import to use --signature-policy option. Set it as hidden flag to be consistent with other commands. Signed-off-by: Qi Wang <qiwan@redhat.com>
This commit is contained in:
@ -205,7 +205,7 @@ func CreateImageFromSrc(w http.ResponseWriter, r *http.Request) {
|
||||
utils.Error(w, "Something went wrong.", http.StatusInternalServerError, errors.Wrap(err, "failed to write temporary file"))
|
||||
}
|
||||
}
|
||||
iid, err := runtime.Import(r.Context(), source, "", query.Changes, "", false)
|
||||
iid, err := runtime.Import(r.Context(), source, "", "", query.Changes, "", false)
|
||||
if err != nil {
|
||||
utils.Error(w, "Something went wrong.", http.StatusInternalServerError, errors.Wrap(err, "unable to import tarball"))
|
||||
return
|
||||
|
@ -391,7 +391,7 @@ func ImagesImport(w http.ResponseWriter, r *http.Request) {
|
||||
tmpfile.Close()
|
||||
source = tmpfile.Name()
|
||||
}
|
||||
importedImage, err := runtime.Import(context.Background(), source, query.Reference, query.Changes, query.Message, true)
|
||||
importedImage, err := runtime.Import(context.Background(), source, query.Reference, "", query.Changes, query.Message, true)
|
||||
if err != nil {
|
||||
utils.Error(w, "Something went wrong.", http.StatusInternalServerError, errors.Wrap(err, "unable to import image"))
|
||||
return
|
||||
|
Reference in New Issue
Block a user