NerdCTL Fails to Find Bind Mount Path in /private/tmp on macOS Catalina #946
-
DescriptionVersion InfoThe host OS is macOS, version 10.15.7, and the Lima version is 0.21. Bug DescriptionOn macOS, # to install grealpath
$ brew install coreutils
$ brew install lima
$ cd /tmp/lima
$ pwd
/tmp/lima
$ grealpath .
/private/tmp/lima
$ limactl start
$ cwd=$(grealpath .)
$ nerdctl.lima run --rm -it -v "${cwd}":/"${cwd}" ubuntu:20.04 bash
FATA[0000] no such file or directory
$ cwd=$(pwd)
$ nerdctl.lima run --rm -it -v "${cwd}":/"${cwd}" ubuntu:20.04 bash
# this works My Lima info is the following:
I am using all the default configurations. Expected BehaviorLima should properly find and then mount the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
This is working as expected; the default config maps Lines 85 to 88 in de9f354 If you want to references files via |
Beta Was this translation helpful? Give feedback.
-
I guess then I've got 2 follow-up questions:
Something like: - location: "/tmp/lima"
# 🟢 Builtin default: false
# 🔵 This file: true (only for "/tmp/lima")
writable: true
# Resolve any symlinks prior to mounting.
# That is, if /tmp/a goes to /tmp/b, allow
# either /tmp/a or /tmp/b to be mounted.
canonicalize: true |
Beta Was this translation helpful? Give feedback.
-
I don't follow, the whole point of having a symlink is to be "transparent" to the user, so you can use
Theoretically yes, but I don't see the point; why not put the target of the symlink into the mounts:
- location: /private/tmp/lima
writable: true This is a lot more explicit about what you want to happen. |
Beta Was this translation helpful? Give feedback.
This is working as expected; the default config maps
/tmp
and not/private/tmp
into the VM:lima/examples/default.yaml
Lines 85 to 88 in de9f354
If you want to references files via
/private/tmp/lima
then you have to update the mount definition inlima.yaml
.