Kajsa Gauza
Kajsa Gauza

Reputation: 1408

How to use Docker for Windows only in command line, with GUI bypassed/disabled?

I work with Windows containers on Windows 10 Pro.

Is it enough just to run dockerd process in PowerShell to use Docker? Should I need some other processes/services running?

I still don't understand the purpose of com.docker.service (Docker Desktop Service). I pull images and run containers without it.

Am I missing something?

Edit: It is not possible to switch container mode with DockerCli.exe without com.docker.service running, but when it does, it creates MobyLinuxVM to run Linux containers. It may be the main purpose of having the service enabled.

Question: Do I need the Docker Desktop Service when I only work in Windows containers mode?

Question: Why running Windows container in hyperv isolation mode does not create Hyper-V VM? I've double checked it Hyper-V Manager.

Upvotes: 2

Views: 2687

Answers (1)

Miq
Miq

Reputation: 4289

When you run linux containers on windows, tyou don't run in on windows but on hyperv machine with linux installed.

Windows containers are ran by windows native dockerd.

This additional gui helps you manage which type of container you're using at the moment. Probably you could live without it, but is it worth it? It might in the newer version (didn't test that) provide the connectivity betwen linux and windows containers, so I'd be careful with disabling that service.

Just to note, this is only for desktop windows. For windows server you can and should use docker ee (basic version is only for windows and it's free)

Upvotes: 1

Related Questions