diff options
author | Brent Baude <bbaude@redhat.com> | 2020-08-04 12:52:45 -0500 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-08-11 11:17:27 +0200 |
commit | c5646acf4a06520f4fa65acdf8eebb4130c5e7d9 (patch) | |
tree | 01f5be4675d84c4ce9839e22a4c4842fc0bfa761 /pkg | |
parent | 729e0aa0d1fa00dc6452897dc57ccccaf04fc20c (diff) | |
download | podman-c5646acf4a06520f4fa65acdf8eebb4130c5e7d9.tar.gz podman-c5646acf4a06520f4fa65acdf8eebb4130c5e7d9.tar.bz2 podman-c5646acf4a06520f4fa65acdf8eebb4130c5e7d9.zip |
podman-remote send name and tag
when loading an image with podman-remote load, we need to send a name and a tag to the endpoint
Fixes: #7124
Backported-by: Valentin Rothberg <rothberg@redhat.com>
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/domain/infra/tunnel/images.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/domain/infra/tunnel/images.go b/pkg/domain/infra/tunnel/images.go index bfe5fbec3..2e30621c5 100644 --- a/pkg/domain/infra/tunnel/images.go +++ b/pkg/domain/infra/tunnel/images.go @@ -188,7 +188,11 @@ 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 + } + return images.Load(ir.ClientCxt, f, &ref) } func (ir *ImageEngine) Import(ctx context.Context, opts entities.ImageImportOptions) (*entities.ImageImportReport, error) { |