1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/integration/image
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
..
commit_test.go Using test names instead of hardcoded ones in integration/image directory 2020-05-18 16:37:09 +01:00
import_test.go Add support for platform (os and architecture) on image import 2022-01-24 18:24:51 +01:00
list_test.go Using test names instead of hardcoded ones in integration/image directory 2020-05-18 16:37:09 +01:00
main_test.go testutil: make testing packages public 2019-09-11 07:47:23 -05:00
pull_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
remove_test.go Windows: Enable more integration tests 2020-09-20 22:09:27 +03:00
remove_unix_test.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
tag_test.go Windows: Enable more integration tests 2020-09-20 22:09:27 +03:00