mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
containerd/load: Load all platforms
To make it possible to load emptyfs which is amd64 only Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
parent
54de892d1e
commit
502d3a1fcb
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ func (i *ImageService) ExportImage(ctx context.Context, names []string, outStrea
|
|||
//
|
||||
// TODO(thaJeztah): produce JSON stream progress response and image events; see https://github.com/moby/moby/issues/43910
|
||||
func (i *ImageService) LoadImage(ctx context.Context, inTar io.ReadCloser, outStream io.Writer, quiet bool) error {
|
||||
platform := platforms.DefaultStrict()
|
||||
platform := platforms.All
|
||||
imgs, err := i.client.Import(ctx, inTar, containerd.WithImportPlatform(platform))
|
||||
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue