Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split LocalMounter.Mount into Windows and Unix #1571

Merged
merged 1 commit into from
Jul 16, 2020

Conversation

TBBle
Copy link
Collaborator

@TBBle TBBle commented Jul 16, 2020

Due to current deficiencies in the Windows implementation of containerd's Mount.Mount, we need different behaviour for mounting on Windows and Unix platforms.

Specifically:

  • Windows mounts can only mount in-place, and hence only one mount should be in the list.
  • BuildKit doesn't own the mount directory, so should not try and remove it on unmount.

See discussion leading to #1314 (comment)

Contributes towards #616

Due to current deficiencies in the Windows implementation of
containerd's Mount.Mount, we need different behaviour for mounting on
Windows and Unix platforms.

Specifically:
* Windows mounts can only mount in-place, and hence only one mount
  should be in the list.
* BuildKit doesn't own the mount directory, so should not try and remove
  it on unmount.

Signed-off-by: Paul "TBBle" Hampson <[email protected]>
@tonistiigi tonistiigi merged commit 9469671 into moby:master Jul 16, 2020
@TBBle TBBle deleted the windows_layer_mount_support branch July 16, 2020 16:02
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.

3 participants