c8d/import: Use danglingImageName instead of hardcoded
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
parent
b3a8b6b198
commit
afc6e3fa46
1 changed files with 1 additions and 3 deletions
|
@ -135,9 +135,7 @@ func (i *ImageService) ImportImage(ctx context.Context, ref reference.Named, pla
|
|||
CreatedAt: createdAt,
|
||||
}
|
||||
if img.Name == "" {
|
||||
// TODO(vvoland): danglingImageName(manifestDesc.Digest)
|
||||
img.Name = "dangling@" + manifestDesc.Digest.String()
|
||||
|
||||
img.Name = danglingImageName(manifestDesc.Digest)
|
||||
}
|
||||
|
||||
err = i.saveImage(ctx, img)
|
||||
|
|
Loading…
Add table
Reference in a new issue