Score:2

Run a linux docker container on Windows Server 2022

sd flag

I have a Windows Server 2022 running on GCP. I've installed docker as described here: https://cloud.google.com/compute/docs/containers#docker_on_windows

Namely, I did this:

Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
Install-Package -Name docker -ProviderName DockerMsftProvider
Restart-Computer -Force

However, when I try to run a linux image, I get

PS C:\Windows\system32> docker run busybox ls
Unable to find image 'busybox:latest' locally
latest: Pulling from library/busybox
docker: no matching manifest for windows/amd64 10.0.20348 in the manifest list entries.
See 'docker run --help'.
PS C:\Windows\system32> docker run --rm --platform linux alpine ls
Unable to find image 'alpine:latest' locally
docker: Error response from daemon: unsupported os linux.
See 'docker run --help'.

What am I doing wrong?

Edit. I can't enable hyper-V on GCP. My processor is Intel(R) Xeon(R) CPU @ 2.80GHz 2.80 GHz should't it allow nested virtualization

Screenshot

Looks like I need to enable nested virtualization in gcp. For that, I need to set enableNestedVirtualization field to true. There are descriptions on how to do it with gcloud api, but no way I can get my customer to do that. Any way to do it either in the WebUI or the VPS itself?

Edit 2. Does this mean I can't run a linux docker container from Windows? Or is docker a special case?

L1 VMs have the following restrictions: You must run Linux-based OSes; you can't use Windows Server images.

https://cloud.google.com/compute/docs/instances/nested-virtualization/overview

John Hanley avatar
cn flag
https://mountainss.wordpress.com/2022/05/28/running-ubuntu-and-debian-linux-distro-on-windows-server-2022-preview-with-wsl2/
iiiooo avatar
sd flag
thank you! I just edited my original question, looks like nested virtualization needs to be enabled before I can run hyper-v?
Score:2
id flag

So, a few things about what you are trying to do:

iiiooo avatar
sd flag
Is there a way to run Docker on Windows 11 without Docker Desktop?
Vinicius Apolinario avatar
id flag
Not that I know of. Can you please clarify the scenario? Why do you want to run containers without Docker Desktop on Windows? Is it because of the cost? In that case, you could look into https://mobyproject.org/. Moby is the open source project from which Docker builds on. It's free, and community led.
Matija Žiberna avatar
cn flag
Running older versions of Docker like 2.2
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.