Skip to content

Remove LCOW (step 6)#42683

Merged
cpuguy83 merged 5 commits intomoby:masterfrom
thaJeztah:remove_lcow_step6
Jul 29, 2021
Merged

Remove LCOW (step 6)#42683
cpuguy83 merged 5 commits intomoby:masterfrom
thaJeztah:remove_lcow_step6

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

Splitting off more bits from #42170

@thaJeztah thaJeztah added status/2-code-review kind/experimental impact/deprecation area/lcow Issues and PR's related to the experimental LCOW feature labels Jul 27, 2021
@thaJeztah thaJeztah added this to the 21.xx milestone Jul 27, 2021
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah force-pushed the remove_lcow_step6 branch from b5beee4 to 13cb04e Compare July 27, 2021 11:36
@thaJeztah
Copy link
Copy Markdown
Member Author

@tianon @cpuguy83 @justincormack PTAL

// DefaultLinuxSpec create a default spec for running Linux containers
func DefaultLinuxSpec() specs.Spec {
s := specs.Spec{
return specs.Spec{
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.

Changes in this file are easiest reviewed with "ignore whitespace"; https://github.com/moby/moby/pull/42683/files?w=1


func (p *v2Puller) pullSchema1(ctx context.Context, ref reference.Reference, unverifiedManifest *schema1.SignedManifest, platform *specs.Platform) (id digest.Digest, manifestDigest digest.Digest, err error) {
if platform != nil {
// Early bath if the requested OS doesn't match that of the configuration.
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.

Early bath?

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.

Comment was already there. I can only assume John wrote that, as it looks to be an 🇬🇧 expression https://dictionary.cambridge.org/dictionary/english/an-early-bath


# Detach any VHDs
gwmi msvm_mountedstorageimage -namespace root/virtualization/v2 -ErrorAction SilentlyContinue | foreach-object {$_.DetachVirtualHardDisk() }
gwmi msvm_mountedstorageimage -namespace root/virtualization/v2 -ErrorAction SilentlyContinue | foreach-Object {$_.DetachVirtualHardDisk() }
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.

Why this change?

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.

Hmm I think that was when I fixed the alias, but I see Foreach does not have a capital here either; must've overlooked that when extracting this from the other PR

if (-not ("$env:DOCKER_STORAGE_OPTS" -eq "")) {
Write-Host -ForegroundColor Green "INFO: Running the daemon under test with storage-driver options ${env:DOCKER_STORAGE_OPTS}"
$env:DOCKER_STORAGE_OPTS.Split(",") | ForEach {
$env:DOCKER_STORAGE_OPTS.Split(",") | ForEach-Object {
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.

Why the change?

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.

Linter complaining that Foreach is an alias, and that should not be used as it could lead to unpredictable behavior

Copy link
Copy Markdown
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

LGTM

@cpuguy83 cpuguy83 merged commit 51b06c6 into moby:master Jul 29, 2021
@thaJeztah thaJeztah deleted the remove_lcow_step6 branch July 29, 2021 19:15
@thaJeztah thaJeztah mentioned this pull request Jul 12, 2023
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/lcow Issues and PR's related to the experimental LCOW feature impact/deprecation kind/experimental status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants