Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable mixed platform on Docker on year 2022?

I checked out some tutorials but the Daemon tab is already missing with the current version of Docker Desktop(4.8.1). Under the "Docker Engine" tab, I set the 'experimental' field to 'true' but it looks like it is still not working.

The "platform" parameter isn't working.

like image 953
eSPiYa Avatar asked Oct 18 '25 03:10

eSPiYa


1 Answers

What works:

  • Running linux based containers, Switch to Windows containers... and run windows containers. Running containers will keep on running. You'll find it on right-click on system tray of Docker Desktop.
  • Pull windows and linux based containers in Windows mode, but NOT in linux mode
  • Creating a compose file and use the keys platform: linux and platform: windows mixed, while running Windows container mode. Compose will choose the daemon for you.

You can not:

  • Build images on a daemon not supporting the OS of the image, see Roadmap

I don't know whats wrong in your case. In Windows Mode with

{
  "experimental": true
}

(you have to set it again in Windows Mode, there are 2 different daemon settings) you should be able to pull linux and windows images. Just checked with docker desktop 4.9.0 (prebuild), can't pull in 4.8.1 due to bug in proxy settings..

like image 75
araisch Avatar answered Oct 20 '25 16:10

araisch



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!