Skip to content

Split LocalMounter.Mount into Windows and Unix#1571

Merged
tonistiigi merged 1 commit intomoby:masterfrom
TBBle:windows_layer_mount_support
Jul 16, 2020
Merged

Split LocalMounter.Mount into Windows and Unix#1571
tonistiigi merged 1 commit intomoby:masterfrom
TBBle:windows_layer_mount_support

Conversation

@TBBle
Copy link
Copy Markdown
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 <Paul.Hampson@Pobox.com>
@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