Skip to content

Commit

Permalink
fix: mountしたディレクトリがパーミッションエラー
Browse files Browse the repository at this point in the history
  • Loading branch information
saxsir committed Dec 8, 2022
1 parent c22dd9d commit 4bf19d4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# aarch64 or x86_64
ARCH:="aarch64"
TARGET:=

TARGET:=
ifeq ($(ARCH),"aarch64")
TARGET:=docker
else
Expand All @@ -17,5 +17,8 @@ stop:
build:
limactl start $(TARGET).yaml

clean: stop
limactl delete $(TARGET)

list:
limactl list
34 changes: 27 additions & 7 deletions docker_x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ memory: null
# 🟢 Builtin default: "100GiB"
disk: null


# Mount type for above mounts, such as "reverse-sshfs" (from sshocker), "9p" (EXPERIMENTAL, from QEMU’s virtio-9p-pci, aka virtfs),
# or "virtiofs" (EXPERIMENTAL, needs `vmType: vz`)
# 🟢 Builtin default: "reverse-sshfs"
mountType: 9p

# Expose host directories to the guest, the mount point might be accessible from all UIDs in the guest
# 🟢 Builtin default: null (Mount nothing)
# 🔵 This file: Mount the home as read-only, /tmp/lima as writable
Expand Down Expand Up @@ -84,17 +90,31 @@ mounts:
# See https://www.kernel.org/doc/Documentation/filesystems/9p.txt
# 🟢 Builtin default: "fscache" for non-writable mounts, "mmap" for writable mounts
cache: null
- location: "~/src"
writable: true
9p:
# Supported security models are "passthrough", "mapped-xattr", "mapped-file" and "none".
# "mapped-xattr" and "mapped-file" are useful for persistent chown but incompatible with symlinks.
# 🟢 Builtin default: "none" (since Lima v0.13)
securityModel: "mapped-xattr"
# Select 9P protocol version. Valid options are: "9p2000" (legacy), "9p2000.u", "9p2000.L".
# 🟢 Builtin default: "9p2000.L"
protocolVersion: null
# The number of bytes to use for 9p packet payload, where 4KiB is the absolute minimum.
# 🟢 Builtin default: "128KiB"
msize: null
# Specifies a caching policy. Valid options are: "none", "loose", "fscache" and "mmap".
# Try choosing "mmap" or "none" if you see a stability issue with the default "fscache".
# See https://www.kernel.org/doc/Documentation/filesystems/9p.txt
# 🟢 Builtin default: "fscache" for non-writable mounts, "mmap" for writable mounts
cache: "mmap"
- location: "/tmp/lima"
# 🟢 Builtin default: false
# 🔵 This file: true (only for "/tmp/lima")
writable: true
- location: "~/src"
writable: true

# Mount type for above mounts, such as "reverse-sshfs" (from sshocker), "9p" (EXPERIMENTAL, from QEMU’s virtio-9p-pci, aka virtfs),
# or "virtiofs" (EXPERIMENTAL, needs `vmType: vz`)
# 🟢 Builtin default: "reverse-sshfs"
mountType: 9p
9p:
securityModel: "mapped-xattr"
cache: "mmap"

ssh:
# A localhost port of the host. Forwarded to port 22 of the guest.
Expand Down

0 comments on commit 4bf19d4

Please sign in to comment.