Skip to content

Support tmpfs backed sandbox mount for LCOW containers - #2533

Merged
jiechen0826 merged 1 commit into
microsoft:mainfrom
jiechen0826:user/jiechen3/sandbox-mount-tmpfs
Oct 22, 2025
Merged

Support tmpfs backed sandbox mount for LCOW containers#2533
jiechen0826 merged 1 commit into
microsoft:mainfrom
jiechen0826:user/jiechen3/sandbox-mount-tmpfs

Conversation

@jiechen0826

@jiechen0826 jiechen0826 commented Oct 9, 2025

Copy link
Copy Markdown
Contributor

This PR adds the support for tmpfs backed sandbox mount. The tmpfs mounts are mounted inside UVM under the directory at /run/gcs/c/<SANDBOX-ID>/sandboxTmpfsMounts.

Containers can utilize a tmpfs-backed sandbox mount using sandbox-tmp:// prefix as follows,

"mounts": [
      {
          "host_path": "sandbox-tmp://s1",
          "container_path": "/sndbox/m1"
      }
]

If checking from the container's perspective,

.\crictl.exe exec -i $CONTAINER cat /proc/self/mountinfo
129 122 0:41 /s1 /sndbox/m1 rw,relatime - tmpfs tmpfs rw

@jiechen0826
jiechen0826 requested a review from a team as a code owner October 9, 2025 23:16
Comment thread internal/guest/spec/spec.go
Comment thread internal/guest/runtime/hcsv2/workload_container.go Outdated
@jiechen0826
jiechen0826 force-pushed the user/jiechen3/sandbox-mount-tmpfs branch from 85a8ae3 to 874cc78 Compare October 13, 2025 21:24
Signed-off-by: Jie Chen <jiechen3@microsoft.com>
@jiechen0826
jiechen0826 force-pushed the user/jiechen3/sandbox-mount-tmpfs branch from 874cc78 to 0d1b8a1 Compare October 14, 2025 16:55
@jiechen0826
jiechen0826 merged commit 1ce04dd into microsoft:main Oct 22, 2025
17 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