what I'm trying to achieve is running a Linux(ubuntu LST) container inside a windows server 2019 OS. The problem is that the windows OS runs as an AWS instance.

There have been problem for me trying to achieve this and I've been reading somewhat different opinions on the internet regarding whether or not it is possible. Some say it will be possible on a .metal instance which is bare metal. Currently I've been trying running it on a regular t3 instance with has virtualization type HVM.

To sum up my questions are:

  1. Is running a linux container on windows aws instance possible?
  2. If yes, how?
  3. If not, will it be possible on a bare metal instance?

Please keep in mind that I need the container to run in a Windows environment due to multiple tasks the the OS needs to achieve (and I don't want multiple instances)

  • 1
    Have you tried setting up WSL2 on the windows ec2 instance? This might answer your requirement
    – Meir Gabay
    Jan 31, 2021 at 10:33

1 Answer 1


Containers run sharing resources from the host operating system in a controlled manner, so you can't run Windows containers on Linux as you can't run Linux containers on Windows.

That said, you can run Linux on Windows through WSL (Windows Subsystem from Linux) and then you can run a Linux container in it.

See: Docker Desktop WSL 2 backend

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.