Files
moby/daemon
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
..
2022-01-03 16:51:02 +01:00
2021-06-01 21:51:23 +00:00
2021-10-05 09:57:00 +02:00
2021-06-01 21:51:23 +00:00
2022-01-06 18:28:21 +01:00
2021-06-01 21:51:23 +00:00
2021-06-01 21:51:23 +00:00
2021-06-10 13:03:42 +02:00
2021-06-01 23:48:32 +00:00
2022-01-06 18:28:21 +01:00
2021-06-01 21:51:23 +00:00