Skip to content

feat: add volume-nocopy - #5129

Open
jiwahn wants to merge 1 commit into
containerd:mainfrom
jiwahn:feat-volume-nocopy
Open

feat: add volume-nocopy#5129
jiwahn wants to merge 1 commit into
containerd:mainfrom
jiwahn:feat-volume-nocopy

Conversation

@jiwahn

@jiwahn jiwahn commented Aug 7, 2026

Copy link
Copy Markdown
FROM alpine
RUN mkdir -p /mnt && echo hi > /mnt/initial_file
CMD ["sh"]
╰─$ nerdctl run --rm -it \
  --mount type=volume,source=nocopy-vol,target=/mnt,volume-nocopy \
  nocopy-test \
  sh
/ # ls -la mount
ls: mount: No such file or directory
/ # ls -la /mnt
total 8
drwx------    2 root     root          4096 Aug  7 14:51 .
drwxr-xr-x    1 root     root          4096 Aug  7 14:51 ..
/ # exit

Signed-off-by: Jiwoo Ahn <ikwydls1314@gmail.com>
@jiwahn

jiwahn commented Aug 7, 2026

Copy link
Copy Markdown
Author

+) I thought Adding -v...:nocopy option makes code a little redundant, so I didn't feel like adding it here. But please let me know if it's better to be done in this PR!

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.

1 participant