Skip to content

[release/0.14] WCOW: restore support for client-mounted roots (#2595)#2659

Merged
anmaxvl merged 1 commit intomicrosoft:release/0.14from
cpuguy83:0.14_backport_pr2595
Apr 6, 2026
Merged

[release/0.14] WCOW: restore support for client-mounted roots (#2595)#2659
anmaxvl merged 1 commit intomicrosoft:release/0.14from
cpuguy83:0.14_backport_pr2595

Conversation

@cpuguy83
Copy link
Copy Markdown

@cpuguy83 cpuguy83 commented Apr 2, 2026

Commit 00ca088 broke starting process-isolated containers when Root.Path is set in the container spec. Root.Path is set by clients such as Docker which mount and unmount the container's root filesystem themselves. Mounting is skipped, which also skips over setting coi.mountedWCOWLayers. The
hcsoci.createWindowsContainerDocument function unconditionally dereferences that field, resulting in a nil-dereference panic when mounting is skipped. Restore the old behaviour by synthesizing the MountedWCOWLayers when Root.Path is set.

(cherry picked from commit fa457e6)

Commit 00ca088 broke starting
process-isolated containers when Root.Path is set in the container spec.
Root.Path is set by clients such as Docker which mount and unmount the
container's root filesystem themselves. Mounting is skipped, which also
skips over setting coi.mountedWCOWLayers. The
hcsoci.createWindowsContainerDocument function unconditionally
dereferences that field, resulting in a nil-dereference panic when
mounting is skipped. Restore the old behaviour by synthesizing the
MountedWCOWLayers when Root.Path is set.

Signed-off-by: Cory Snider <csnider@mirantis.com>
(cherry picked from commit fa457e6)
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@cpuguy83 cpuguy83 requested a review from a team as a code owner April 2, 2026 18:33
@cpuguy83 cpuguy83 changed the base branch from main to release/0.14 April 2, 2026 18:35
Copy link
Copy Markdown
Contributor

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM if CI is happy.

@anmaxvl anmaxvl changed the title WCOW: restore support for client-mounted roots (#2595) [release/0.14] WCOW: restore support for client-mounted roots (#2595) Apr 2, 2026
@anmaxvl
Copy link
Copy Markdown
Contributor

anmaxvl commented Apr 2, 2026

rerunning tests. they're flaky.

@anmaxvl anmaxvl merged commit 98d74bb into microsoft:release/0.14 Apr 6, 2026
39 of 41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants