Hello, I need to install docker with docker compose in a Windows Server 2012 R2 to run a Linux container (Ubuntu). Apparently this server has Hypervisor (msinfo32 → System Resources → “A hypervisor has been detected. Features required for Hyper-V will not be displayed”). However, the sources I found are somewhat contradictory:
According to this link ( How to install docker in windows server 2012 R2? ), it’s possible to run a Linux container in Windows Server 2012 R2 through Hyper-V, but “docker desktop is not supported”.
In this other link ( Doctor wont start after install - #2 by rimelek ), it says that “you can’t run Docker Desktop. Instead, you can run Docker CE”. It also says there are scripts to install docker ce ( Prepare Windows operating system containers | Microsoft Learn ), with three options - Moby, which seems to require Windows Server 2016, Mirantis Container Runtime (Docker EE, paid), and Containerd, for which I did not find requirement information (“minimal” runtime requirements: GitHub - containerd/containerd: An open and reliable container runtime ). At least on Linux docker comes with Docker Compose integrated, so theoretically I’ll have it on Windows too.
This third link ( Docker for Windows Server 2012 R2 - Stack Overflow ) says that the “Only option available for you would be to setup a virtual machine inside Windows Server 2012 and run a Docker Supported OS on it.”
However, a few people were able to install Docker Toolbox ( DOCKER toolbox for Windows Server 2012 which is running on VM ), which is a legacy product ( Install Docker Toolbox on Windows | Docker Documentation ) but it contains Docker Compose. I found these instructions which supposedly work for at least Windows 7, which includes Windows Server 2012 ( Install Docker Toolbox in Windows ). And the TI admin of the company recommended me to try Docker Desktop.
Considering all of this, I have a few questions:
For what I got, I could either install the old Docker Toolbox or directly install docker CE, using one of these scripts. Which would be more recommended for Windows Server 2012 R2? Or should I try Docker Desktop to see if it works?
If I need to use virtualization, will a solution for Windows Server 2012 R2 manage the VM part, or will I need to set a VM manually? I tried Docker Desktop in a Windows 10 for testing, and I did not need to set manually a VM, Docker Desktop managed it for me. But that was Win 10.
Thanks in advance!