Bind Mount permission problem with Docker LXC

jadog

New Member
Aug 3, 2024
1
0
1
I have followed the instructions from here (https://itsembedded.com/sysadmin/proxmox_bind_unprivileged_lxc/) by using Method 2 to map a network share to my Windows Server to allow access from Proxmox unpreviledged containers - specifically my Docker LXC.

When I shell into proxmox and edit the config file for my Docker LXC, I added the below changes:

Code:
mp0: /mnt/pve/ServerShare,mp=/mnt/smb_share
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir
lxc.idmap: u 0 100000 1000
lxc.idmap: g 0 100000 1000
lxc.idmap: u 1000 1000 1
lxc.idmap: g 1000 1000 1
lxc.idmap: u 1001 101000 64535
lxc.idmap: g 1001 101000 64535

I then start up the Docker LXC container and when I navigate to the share as the user "Jadon", I still see the "nobody" user and group. And it also shows "Permission denied".

1722708095088.png

I also ran the below command from PVE while the container was powered off.

Code:
chown -R 1000:1000 /mnt/pve/ServerShare

The docker user is "Jadon" and has a GUID and PUID of 1000. I don't understand what I'm missing. Could someone explain to me what I'm doing wrong?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!