mirror of https://github.com/containers/podman.git
Merge pull request #5259 from schubter/apiv2-create-image
APIv2: Fixed CreateImageFromImage not respecting supplied Tag parameter
This commit is contained in:
commit
aa1bb0b579
|
@ -255,7 +255,7 @@ func CreateImageFromImage(w http.ResponseWriter, r *http.Request) {
|
|||
tag – Tag or digest. If empty when pulling an image, this causes all tags for the given image to be pulled.
|
||||
*/
|
||||
fromImage := query.FromImage
|
||||
if len(query.Tag) < 1 {
|
||||
if len(query.Tag) >= 1 {
|
||||
fromImage = fmt.Sprintf("%s:%s", fromImage, query.Tag)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue