So I’m trying to do this Isolate containers with a user namespace | Docker Documentation
I’m trying to simply map my local user jove (1000) to the root(0) in the container.
I have added this to the /etc/subgid and subid
and I have tried
When I run docker-compose up I get this:
ERROR: failed to register layer: ApplyLayer exit status 1 stdout: stderr: Container ID 44 cannot be mapped to a host ID
Firstly I don’t get what the values in those files actually do other than that the last one says how many from the first one it should use. But how does it tell to map 0 to 1000?
I have googled for this a few hours now and all guides are different, some start at 1000 and some start at 100000 or more.
The docker one says they use
Is mapped like this
231072is mapped within the namespace (within the container, in this case) as UID
231073is mapped as UID
Which makes me even more confused on what decides what is mapped as what.
I have also tried 231072:65536, but they all result in error.
How do you set this up?