@@ -9,10 +9,11 @@ Load an image from a tar archive or STDIN
99
1010### Options
1111
12- | Name | Type | Default | Description |
13- | :------------------------------------| :---------| :--------| :---------------------------------------------|
14- | [ ` -i ` ] ( #input ) , [ ` --input ` ] ( #input ) | ` string ` | | Read from tar archive file, instead of STDIN |
15- | ` -q ` , ` --quiet ` | ` bool ` | | Suppress the load output |
12+ | Name | Type | Default | Description |
13+ | :------------------------------------| :---------| :--------| :-----------------------------------------------------------------------------------------------|
14+ | [ ` -i ` ] ( #input ) , [ ` --input ` ] ( #input ) | ` string ` | | Read from tar archive file, instead of STDIN |
15+ | [ ` --platform ` ] ( #platform ) | ` string ` | | Load only the given platform variant. Formatted as ` os[/arch[/variant]] ` (e.g., ` linux/amd64 ` ) |
16+ | ` -q ` , ` --quiet ` | ` bool ` | | Suppress the load output |
1617
1718
1819<!-- -MARKER_GEN_END-->
@@ -58,3 +59,32 @@ fedora 20 58394af37342 7 weeks ago
5859fedora heisenbug 58394af37342 7 weeks ago 385.5 MB
5960fedora latest 58394af37342 7 weeks ago 385.5 MB
6061```
62+
63+
64+ ### <a name =" platform " ></a > Load a specific platform (--platform)
65+
66+ The ` --platform ` option allows you to specify which platform variant of the
67+ image to load. By default, ` docker load ` loads all platform variants that
68+ are present in the archive. Use the ` --platform ` option to specify which
69+ platform variant of the image to load. An error is produced if the given
70+ platform is not present in the archive.
71+
72+ The platform option takes the ` os[/arch[/variant]] ` format; for example,
73+ ` linux/amd64 ` or ` linux/arm64/v8 ` . Architecture and variant are optional,
74+ and default to the daemon's native architecture if omitted.
75+
76+ The following example loads the ` linux/amd64 ` variant of an ` alpine ` image
77+ from an archive that contains multiple platform variants.
78+
79+ ``` console
80+ $ docker image load -i image.tar --platform=linux/amd64
81+ Loaded image: alpine:latest
82+ ```
83+
84+ The following example attempts to load a ` linux/ppc64le ` image from an
85+ archive, but the given platform is not present in the archive;
86+
87+ ``` console
88+ $ docker image load -i image.tar --platform=linux/ppc64le
89+ requested platform (linux/ppc64le) not found: image might be filtered out
90+ ```
0 commit comments