Skip to content

Windows: Daemon default to Hyper-V containers on client#22774

Merged
LK4D4 merged 1 commit intomoby:masterfrom
microsoft:jjh/client
May 23, 2016
Merged

Windows: Daemon default to Hyper-V containers on client#22774
LK4D4 merged 1 commit intomoby:masterfrom
microsoft:jjh/client

Conversation

@lowenna
Copy link
Copy Markdown
Member

@lowenna lowenna commented May 16, 2016

Signed-off-by: John Howard [email protected]

Fixes https://github.com/Microsoft/Virtualization-Documentation/issues/200. On client SKUs, sets the default isolation to Hyper-V and errors out if set to process, as client does not support Windows server containers. No change to server SKUs.

@mebersol @taylorb-microsoft

@thecloudtaylor
Copy link
Copy Markdown

We haven't even officially started supporting Win10 yet and this issue is already a top hit... This should help a lot!

@justincormack
Copy link
Copy Markdown
Contributor

Looks good.

@lowenna
Copy link
Copy Markdown
Member Author

lowenna commented May 21, 2016

@thaJeztah Can this be moved to code review? Thx.

@thaJeztah
Copy link
Copy Markdown
Member

@jhowardmsft oh! Yes, I think it can

if containertypes.Isolation(val).IsHyperV() {
daemon.defaultIsolation = containertypes.Isolation("hyperv")
}
if containertypes.Isolation(val).IsProcess() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be moved to IsValid()? IIUC for this type of daemon, "process" isolation simply isn't a valid option

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH both are equally valid. I prefer it here as strictly the option chosen is a valid recognised option for isolation which is what that function is checking. I don't mind either way though, just as I say prefer it here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, possibly just a matter of preference 👍

@lowenna
Copy link
Copy Markdown
Member Author

lowenna commented May 21, 2016

Docs updated. @neilpeterson FYI for matching Microsoft side docs.

@thaJeztah
Copy link
Copy Markdown
Member

LGTM, thanks!

@cpuguy83
Copy link
Copy Markdown
Member

Ok, so there will be a docker daemon running on Windows 10 (client) which will only work with hyper-v, is that right?

@lowenna
Copy link
Copy Markdown
Member Author

lowenna commented May 23, 2016

Yes.

@LK4D4
Copy link
Copy Markdown
Contributor

LK4D4 commented May 23, 2016

LGTM

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants