mirror of
https://github.com/containers/podman.git
synced 2026-10-25 11:19:12 -04:00
Fixed CreateImageFromImage not respecting supplied Tag parameter
Signed-off-by: Andreas Schubert <schubter@gmail.com>
This commit is contained in:
1 file changed
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user