moby--moby/docs/api
Sebastiaan van Stijn 01ae9525dd
Add support for platform (os and architecture) on image import
Commit 0380fbff37 added the ability to pass a
--platform flag on `docker import` when importing an archive. The intent
of that commit was to allow importing a Linux rootfs on a Windows daemon
(as part of the experimental LCOW feature).

A later commit (337ba71fc1) changed some
of this code to take both OS and Architecture into account (for `docker build`
and `docker pull`), but did not yet update the `docker image import`.

This patch updates the import endpoitn to allow passing both OS and
Architecture. Note that currently only matching OSes are accepted,
and an error will be produced when (e.g.) specifying `linux` on Windows
and vice-versa.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-01-24 18:24:51 +01:00
..
v1.18.md
v1.19.md
v1.20.md
v1.21.md
v1.22.md
v1.23.md
v1.24.md
v1.25.yaml
v1.26.yaml
v1.27.yaml
v1.28.yaml
v1.29.yaml
v1.30.yaml
v1.31.yaml
v1.32.yaml
v1.33.yaml
v1.34.yaml
v1.35.yaml
v1.36.yaml
v1.37.yaml
v1.38.yaml
v1.39.yaml
v1.40.yaml
v1.41.yaml
version-history.md