Docker - Windows and Linux Containers

For me, I am learning Docker off a computer with Windows 11. I have had Linux based computers in the past, I was even employeed as a system administrator on a few computers running Unix.

While I do prefer a Windows computer to use on a day to day basis, I will acknowlege Unix/Linux is good, probably more appropriate for my use, and if you are a Unix/Linux dude/dudette… when then good for you.

One of the beauties of Docker is that run either Windows or Linux containers. And I think that is great. It opens my eyes to more options.

There are a few problems.

  • The Docker UI (or dashboard, or desktop) lets you switch between Linux and Windows containers. But you dont see them both at the same time.
  • I dont think Docker-Compose can be used with a mix of containers in both operating systems.
  • On my Windows 11 computer, the IIS container (running in Windows) takes MUCH longer to build the the equivalent NGINX continer (running in Linux)
  • You are expected to have a fairly good understanding of both operating systems.

Because of my IIS container (Thanks Microsoft :^( )) I favor using Linux containers.