Closed Zopolis4 closed 1 week ago
I'm unable to reproduce the issue on the latest version:
❱ docker import https://cdimage.ubuntu.com/ubuntu-base/releases/16.04/release/ubuntu-base-16.04.6-base-i386.tar.gz --platform linux/386 test:new
Downloading from https://cdimage.ubuntu.com/ubuntu-base/releases/16.04/release/ubuntu-base-16.04.6-base-i386.tar.gz
sha256:42c9808ae9c694b6a26543196bb771ea8a37e698f361eef9b5fe7e3a8b1d1aa7B/42.89MB
❱ docker image inspect --format='{{.Architecture}}' test:new
386
Please note that you're running an outdated version (v20.10.25 debian package) of Docker which is EOL. Can you check if the issue persist on the currently maintained version (v27.0.3)?
I'll close the issue - if you are able to reproduce the issue on the latest version, please open a ticket in the Moby/Docker Engine issue tracker.
Description
The
--platform
argument todocker import
has no effect on the resultingOS/ARCH
of the image.Reproduce
docker import https://cdimage.ubuntu.com/ubuntu-base/releases/16.04/release/ubuntu-base-16.04.6-base-i386.tar.gz --platform linux/386 test:new
docker image inspect --format='{{.Architecture}}' test:new
Expected behavior
docker image inspect --format='{{.Architecture}}' test:new
should return386
, as the image platform should have been set tolinux/386
by the docker import command.docker version
docker info
Additional Info
No response