Skip to content

Commit

Permalink
fix: Skip mounting zero-byte lxcfs files (#2604)
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol authored Aug 3, 2024
1 parent 3242fa9 commit 970535a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changes/2604.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Skip mounting zero-byte lxcfs files when lxcfs is activated to prevent crashes in session containers
1 change: 1 addition & 0 deletions src/ai/backend/agent/docker/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ async def get_intrinsic_mounts(self) -> Sequence[Mount]:
MountPermission.READ_WRITE,
)
for lxcfs_proc_path in (lxcfs_root / "proc").iterdir()
if lxcfs_proc_path.stat().st_size > 0
)
mounts.extend(
Mount(
Expand Down

0 comments on commit 970535a

Please sign in to comment.