I have a windows share that is mounted on the proxmox host. I'm trying to make the files available in the guest (unprivileged docker container). At first I can see the files in the container ok but they are read only.
Following the guide here;
https://pve.proxmox.com/wiki/Unprivileged_LXC_containers
I put the stated entries into;
/etc/pve/lxc/104.conf
Every time I start the container it fails and I get this error, if I remove the lines it works but then I don't have write access to the files in the mount
I've seen this similar issue posted all over and nothing I seem to try is working.
Following the guide here;
https://pve.proxmox.com/wiki/Unprivileged_LXC_containers
I put the stated entries into;
/etc/pve/lxc/104.conf
/etc/subgidlxc.idmap: u 0 100000 1005
lxc.idmap: g 0 100000 1005
lxc.idmap: u 1005 1005 1
lxc.idmap: g 1005 1005 1
lxc.idmap: u 1006 101006 64530
lxc.idmap: g 1006 101006 64530
/etc/subguidroot:100000:65536
root:1005:1
root:100000:65536
root:1005:1
Every time I start the container it fails and I get this error, if I remove the lines it works but then I don't have write access to the files in the mount
lxc_map_ids: 3701 newgidmap failed to write mapping "newgidmap: gid range [1005-1006) -> [1005-1006) not allowed": newgidmap 530607 0 100000 1005 1005 1005 1 1006 101006 64530
lxc_spawn: 1788 Failed to set up id mapping.
__lxc_start: 2107 Failed to spawn container "104"
TASK ERROR: startup for container '104' failed
I've seen this similar issue posted all over and nothing I seem to try is working.
Last edited: