루트 없는 Podman 컨테이너에서 cifs 공유를 볼륨으로 마운트하는 방법은 무엇입니까?

루트 없는 Podman 컨테이너에서 cifs 공유를 볼륨으로 마운트하는 방법은 무엇입니까?

명명된 볼륨을 생성한다고 가정해 보겠습니다.

podman volume create --opt type=cifs --opt o=async --opt device=//mynas.lan/steamcache steamcache

에 따르면 podman volume inspect이 볼륨의 마운트 지점은 다음 과 같습니다.

/home/me/.local/share/containers/storage/volumes/steamcache/_data

그래서 루트 권한 없이 설치할 수 있도록 다음을 추가했습니다 /etc/fstab.

//mynas.lan/steamcache /home/me/.local/share/containers/storage/volumes/steamcache/_data cifs noauto,user 0 0

수동으로 설치하면 다음과 같이 작동합니다.

mount /home/me/.local/share/containers/storage/volumes/steamcache/_data

smb 비밀번호를 묻고 권한을 에스컬레이션하지 않고 폴더를 올바르게 마운트합니다.

그러나 이 볼륨을 사용하는 Podman 컨테이너를 시작하면 smb 비밀번호를 묻는 메시지가 표시됩니다.

Error: error mounting volume steamcache for container 49da929a55753c244cae62244c2bb5417013a37785667d1d138026a4e1d48163: mount error(1): Operation not permitted
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
mount: permission denied (are you root?)

내가 여기서 뭘 잘못하고 있는 걸까?

관련 정보