2

I've installed docker engine according to the following instructions: https://docs.docker.com/engine/install/binaries/#install-server-and-client-binaries-on-windows

I'm trying to run Linux containers on Windows 11, without Docker Desktop:

PS C:\> docker run -d -p 80:80 docker/getting-started
Unable to find image 'docker/getting-started:latest' locally
latest: Pulling from docker/getting-started
docker: no matching manifest for windows/amd64 10.0.22000 in the manifest list entries.
See 'docker run --help'.

I believe I'm getting the above error because dockerd is configured for Windows containers:

PS C:\> docker info  -f '{{.OSType}}/{{.Architecture}}'
windows/x86_64

I've tried to use DockerCli.exe -SwitchLinuxEngine however it doesn't seem to have been installed:

PS C:\> DockerCli.exe
DockerCli.exe : The term 'DockerCli.exe' is not recognized as the name of a cmdlet ...

How can I switch to Linux containers?

4
  • 1
    From the note inside the provided link: The following section describes how to install the Docker daemon on Windows Server which allows you to run Windows containers only.
    – igiannak
    Aug 26, 2022 at 4:27
  • I'm able to run Windows containers just fine. I need help with Linux containers.
    – Craig
    Aug 29, 2022 at 9:43
  • you can't run Linux containers with Docker Binary Installation. Check your provided link.
    – igiannak
    Aug 31, 2022 at 7:18
  • I guess my question is not phrased very well, or maybe I'm asking the wrong question altogether. I'll collect my thoughts and be back...
    – Craig
    Sep 1, 2022 at 11:31

1 Answer 1

0

Using the following guide, I'm able to use docker on Windows without Docker Desktop. It may not be exactly true to my original question but meets my use case. https://dev.to/bowmanjd/install-docker-on-windows-wsl-without-docker-desktop-34m9

Summarising the guide (in case it disappears from the internet):

I won't accept my own answer for now, in the hope that someone finds a better way

1
  • I think the best way to run Linux container in Windows without Docker Desktop is by running it within WSL2 as you have mentioned.
    – WMRamadan
    Sep 1, 2022 at 23:16

Your Answer

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

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