Skip to content

Running windows-containers by default after Docker desktop installtion #187

Closed

Description

@laprogs

Tell us about your request

Could you please add an option to the Docker installer to use Windows containers by default after installation? That option should be configured throught the command line parameters like: "Docker Desktop Installer.exe" install --quiet --windows-containers

Which service(s) is this request for?
Docker desktop for Windows

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?

I want to develop an app containing a number of servers inside (DLNA-server, Samba server, etc). It should run on Windows 10 desktop. So, I decided to exploit Windows containerization. But installation of the app may be difficilt for a user because it requires Docker configuration. A user needs to switch to Windows containers maually after Docker has been installed.
Also a popup appears about the need of WSL2 installation. That dramatically affects user experience.
Ideally a user should be even not aware of the fact Docker is installed. Everything should work out of the box for him / her.

That's why I'd really love if Docker installer for windows could install and set up everything without any end-user attenance.
Just by running a command like: "Docker Desktop Installer.exe" install --quiet --windows-containers

!Having Docker switched to windows container automatically without any user attendance right after installation is very-very important!

image

Are you currently working around the issue?
I've tried to work this around by executing & $Env:ProgramFiles\Docker\Docker\DockerCli.exe -SwitchDaemon after waiting for "Docker Desktop" process and also "Docker backend" process to start but that did not help. Because switching containers by this command is not possible right after processes start. It is only possible after the processes start and some work is performed by those processes and a popup about WSL2 installation appears. But I don't know how to intercept the moment when docker is ready to switch containers. Just waiting for some time after the processes have started is not a good idea to me.

Additional context
Adding the feaue which I'm requesting would allow to install docker images as a Windows app

Activity

  1. added
    community_new
    on Jan 10, 2021
  2. stephen-turner commented on Jan 13, 2021

    @stephen-turner

    Thanks for this. I believe this is an instance of #80, so I'm going to close this one as a duplicate. Feel free to express the specific request for the --windows-containers flag over there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    community_new

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions