apple/container

[Bug]: `--tmpfs` option for `container {create|run}` does not split mount options.

已關閉

#2,094 建立於 2026年8月7日

 (2 則留言) (0 個反應) (1 位負責人)Swift (752 個分叉)batch import
help wantedstorage

倉庫指標

星標
 (26,498 顆星)
PR 合併指標
 (平均合併 1天 17小時) (30 天內合併 60 個 PR)

描述

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

% container run -it --rm --tmpfs /mnt/scratch:rw,exec alpine ls /mnt
scratch:rw,exec

Problem description

The --tmpfs option should split its value into one or two components (destination path and optional mount options) on the first colon.

The destination path must be a non-empty absolute path.

The mount deduplication should key on the lexically normalized destination path only, not the entire option string.

Validating mount options – not done today, we can continue to let invalid mounts fail in the container – is not in scope for the bug fix.

Environment

- OS: 26
- Xcode: 26
- Container: main

Code of Conduct

  • I agree to follow this project's Code of Conduct

貢獻者指南