mirror of
https://code.castopod.org/adaures/castopod
synced 2025-06-06 18:31:05 +00:00
docs: update linux user namespace section in setup-development.md
This commit is contained in:
parent
134a071add
commit
ec35d5e49d
@ -335,7 +335,7 @@ and run `npm install` again.
|
|||||||
|
|
||||||
### Files created inside container are attributed to root locally (Linux)
|
### Files created inside container are attributed to root locally (Linux)
|
||||||
|
|
||||||
You may use Linux user namespaces to fix this:
|
You may use Linux user namespaces to fix this on your machine:
|
||||||
|
|
||||||
> **Note:**
|
> **Note:**
|
||||||
>
|
>
|
||||||
@ -352,11 +352,13 @@ You may use Linux user namespaces to fix this:
|
|||||||
2. Configure the subordinate uid/guid:
|
2. Configure the subordinate uid/guid:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# in /etc/subuid
|
||||||
username:1000:1
|
username:1000:1
|
||||||
username:100000:65536
|
username:100000:65536
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# in /etc/subgid
|
||||||
username:1000:1
|
username:1000:1
|
||||||
username:100000:65536
|
username:100000:65536
|
||||||
```
|
```
|
||||||
@ -368,7 +370,7 @@ You may use Linux user namespaces to fix this:
|
|||||||
```
|
```
|
||||||
|
|
||||||
4. That's it! Now, the root user in the container will be mapped to the user on
|
4. That's it! Now, the root user in the container will be mapped to the user on
|
||||||
your local machine, no more permission problems! 🎉
|
your local machine, no more permission issues! 🎉
|
||||||
|
|
||||||
You can check
|
You can check
|
||||||
[this great article](https://www.jujens.eu/posts/en/2017/Jul/02/docker-userns-remap/)
|
[this great article](https://www.jujens.eu/posts/en/2017/Jul/02/docker-userns-remap/)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user