Skip to content

Support for running on Windows using Linux Containers for Windows (LCOW) #17461

@gbraad

Description

@gbraad

As part of the Windows 10 Pro 1709 and the Docker edge release, it is possible to activate "Linux Containers on Windows" (LCOW). This means that in future versions, the user needs to choose the older MobyLinuxVM or use LCOW. Either this needs to be made comptaible, or documented.

I was running Docker for Windows + Hyper-V + oc cluster up
Then I decided to update Docker for Windows to Edge channel according the docs : "Edge builds are released once per month."

After that Docker for Windows + Hyper-V + oc cluster up stopped to work and show this error message: "Windows does not support privileged mode".

Steps To Reproduce
  1. install Windows Pro 10, version 1709
  2. install Docker for Windows (Edge)
    image_of_edge
  3. enable Linux Containers on Windows (LCOW)
    image_7702d8a0-6b78-449d-9b7b-cf9a34b080c3
  4. run oc cluster up
Current Result

"Windows does not support privileged mode".
image_of_error

Expected Result

Startup succeeds or informs me beforehand that this is not possible.

Additional Information

It seems "Enable Linux Containers on Windows" (LCOW) does not support "privileged mode" => nodeshift/nodeshift#127 (comment)

The check in Moby/Docker can be found here:
https://github.com/moby/moby/blob/a2f3f6660d08dfb667f091e0fd8454c815dd1c81/runconfig/hostconfig_windows.go#L75-L84

Requirements
References
Example
C:\Users\gbraad>docker run -it --privileged --pid=host gbraad/hostenter /bin/sh
docker: Error response from daemon: Windows does not support privileged mode.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions