Can You Run Windows Containers on Linux?

Can You Run Windows Containers on Linux?
Contents

No, you cannot run windows containers directly on Linux. But you can run Linux on Windows. You can change between OS containers Linux and windows by right clicking on the docker in tray menu.

Can a docker container run on both Windows and Linux?

With Docker for Windows started and Windows containers selected, you can now run either Windows or Linux Containers simultaneously. The new –platform=linux command line switch is used to pull or start Linux images on Windows. Now start the Linux container and a Windows Server Core container.

Should I use Windows containers instead of Linux containers?

2 Answers. If you want to deploy to linux I would advise using linux containers since you then test a more similar setup and are more likely to find issues that will also show in your final deployment. Other than that linux container technology is more mature and better supported than windows containers.

Robert Thorne
Author

Robert Thorne

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.