Hi there,
I'm trying to set up a NFS share within my rancher VM according to:
https://www.youtube.com/watch?v=RNhqvx8y_8A
However, if I mount it, the owner is always sshd with group input.
Can anyone tell me how to fix this?
The config I currently use is:
Can anyone help me?
I'm not sure how permissions should be setup, it seems to be complicated when using NFS.
I'm trying to set up a NFS share within my rancher VM according to:
https://www.youtube.com/watch?v=RNhqvx8y_8A
However, if I mount it, the owner is always sshd with group input.
Can anyone tell me how to fix this?
The config I currently use is:
Code:
#cloud-config
# /var/lib/rancher/conf/cloud-config.d/nfs.yml
# https://github.com/rancher/os/issues/641
write_files:
- path: /etc/rc.local
permissions: "0755"
owner: root
content: |
#!/bin/bash
[ ! -e /usr/bin/docker ] && ln -s /usr/bin/docker.dist /usr/bin/docker
rancher:
services:
nfs:
image: walkerk1980/rancher-nfs-client
labels:
io.rancher.os.after: console, preload-user-images
io.rancher.os.scope: system
net: host
privileged: true
restart: always
volumes:
- /usr/bin/iptables:/sbin/iptables:ro
- /mnt/nfs-1:/mnt/nfs-1:shared
environment:
SERVER: 192.168.1.63
SHARE: /mnt/tb2/docker
Can anyone help me?
I'm not sure how permissions should be setup, it seems to be complicated when using NFS.
Last edited: