Skip to content

Commit

Permalink
podman-remote send name and tag
Browse files Browse the repository at this point in the history
when loading an image with podman-remote load, we need to send a name and a tag to the endpoint

Fixes: #7124

Signed-off-by: Brent Baude <bbaude@redhat.com>
  • Loading branch information
baude committed Aug 5, 2020
1 parent d4cf3c5 commit 2f3b297
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/domain/infra/tunnel/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"archive/tar"
"bytes"
"context"
"fmt"
"io"
"io/ioutil"
"os"
Expand Down Expand Up @@ -196,7 +197,12 @@ func (ir *ImageEngine) Load(ctx context.Context, opts entities.ImageLoadOptions)
return nil, err
}
defer f.Close()
return images.Load(ir.ClientCxt, f, &opts.Name)
ref := opts.Name
if len(opts.Tag) > 0 {
ref += ":" + opts.Tag
}
fmt.Println(ref)
return images.Load(ir.ClientCxt, f, &ref)
}

func (ir *ImageEngine) Import(ctx context.Context, opts entities.ImageImportOptions) (*entities.ImageImportReport, error) {
Expand Down

0 comments on commit 2f3b297

Please sign in to comment.