Has the Qemu up-gradation been reverted in Docker Desktop 4.28.0 for Mac with Apple chip?

The release note (Release notes | Docker Docs) says Qemu 8.1.5 is coming along with Docker Desktop 4.28.0. But, even after the up-gradation, I still gets 8.0.2.

/Applications/Docker.app/Contents/MacOS/qemu-system-aarch64 --version
QEMU emulator version 8.0.2 <---------------------------
Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers

docker version
Client:
 Cloud integration: v1.0.35+desktop.11
 Version:           25.0.3
 API version:       1.44
 Go version:        go1.21.6
 Git commit:        4debf41
 Built:             Tue Feb  6 21:13:26 2024
 OS/Arch:           darwin/arm64
 Context:           desktop-linux

Server: Docker Desktop 4.28.0 (139021)
                          ^-----------------------------
 Engine:
  Version:          25.0.3
  API version:      1.44 (minimum version 1.24)
  Go version:       go1.21.6
  Git commit:       f417435
  Built:            Tue Feb  6 21:14:22 2024
  OS/Arch:          linux/arm64
  Experimental:     false

that must be something else, not for the containers inside the virtual machine but a way to create the virtual machine. Try this:

docker run --rm -it --pid=host --privileged ubuntu:22.04 nsenter --all -t 1 qemu-arm --version

Output:

qemu-arm version 8.1.5 (v8.1.5)
Copyright (c) 2003-2023 Fabrice Bellard and the QEMU Project developers

Since qemu needs to run on the host where Docker containers are running, which is not your physical host on macOS, if you can run qemu on the host, that wouldnā€™t run in the Linux VM.

1 Like

@rimelek I appreciate it pretty much. Iā€™ll keep it mind that that inside containers is different from that on the host. I also confirmed it in a way:

docker run --rm -it --init --pid=host --platform=linux/x86_64 --privileged centos:centos7 nsenter -m -u -i -n -p -t 1 qemu-x86_64 --version
qemu-x86_64 version 8.1.5 (v8.1.5)
Copyright (c) 2003-2023 Fabrice Bellard and the QEMU Project developers

Thank you very much!