Replies: 2 comments 3 replies
-
I'm not familiar with how Docker and Podman work so I can't say for sure. |
Beta Was this translation helpful? Give feedback.
-
Sorry for reviving an old discussion, but this is possible pretty easily and it's the main reason I've been using FEX for a couple of years. I'm sure it might be useful also for other people. FEX can be used to run unmodified amd64 Docker images as long as binfmt support is installed ( $ uname -a
Linux docker-vm 5.19.17-051917-generic #202210240939 SMP PREEMPT_DYNAMIC Mon Oct 24 13:56:02 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
$ dpkg -l | grep fex
ii fex-emu-armv8.4 2407~1~j arm64 x86 and x86-64 Linux emulator
ii fex-emu-binfmt32 2407~1~j arm64 x86 and x86-64 Linux emulator
ii fex-emu-binfmt64 2407~1~j arm64 x86 and x86-64 Linux emulator
ii libfex-emu-armv8.4-dev 2407~1~j arm64 x86 and x86-64 Linux emulator
$ docker run \
--platform linux/amd64 \
-v/lib/ld-linux-aarch64.so.1:/lib/ld-linux-aarch64.so.1:ro \
-v/lib/aarch64-linux-gnu:/lib/aarch64-linux-gnu:ro \
-v/usr/bin/FEXInterpreter:/usr/bin/FEXInterpreter:ro \
-v/usr/bin/FEXLoader:/usr/bin/FEXLoader:ro \
-v/usr/bin/FEXServer:/usr/bin/FEXServer:ro \
hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/ |
Beta Was this translation helpful? Give feedback.
-
Hello,
Is it possible now (probably not)? If not - what are the obstacles to running Linux containers with FEX?
I have already tried Podman and Docker, but they don't work - the error is the same for both:
Beta Was this translation helpful? Give feedback.
All reactions