linux:pve:bind_mount
Bind Mount
Once our host has access to the NFS, we need to give the container access to that data via a bind mount. A bind mount is a folder on the host that is mapped inside the container. To create the bind mount, open the Proxmox CLI, and run
pct set 100 -mp0 /host/shared_dir_location,mp=/path/in/container
pct
is the Proxmox Container Toolkitset
tellspct
we’re going to set an option100
is the container ID we’ll be working on-mp0
is the name of the mount point- the first path listed is the directory on your host you’re attempting to share with the container
,mp=/path
is the path where we want that directory mounted within the container
linux/pve/bind_mount.txt · 最后更改: 2022/11/27 00:47 由 packingbox