Skip to content
Snippets Groups Projects
Unverified Commit ec35d5e4 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

docs: update linux user namespace section in setup-development.md

parent 134a071a
No related branches found
No related tags found
No related merge requests found
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
- [Introduction](#introduction) - [Introduction](#introduction)
- [Pre-requisites](#pre-requisites) - [Pre-requisites](#pre-requisites)
- [(recommended) Develop inside the app Container with VSCode](#recommended-develop-inside-the-app-container-with-vscode) - [(recommended) Develop inside the app Container with VSCode](#recommended-develop-inside-the-app-container-with-vscode)
- [(not-recommended) Develop outside the app container](#not-recommended-develop-outside-the-app-container) - [(not-recommended) Develop outside the app container](#not-recommended-develop-outside-the-app-container)
- [Install Castopod Host's dependencies](#install-castopod-hosts-dependencies) - [Install Castopod Host's dependencies](#install-castopod-hosts-dependencies)
- [Initialize and populate database](#initialize-and-populate-database) - [Initialize and populate database](#initialize-and-populate-database)
- [Start hacking](#start-hacking) - [Start hacking](#start-hacking)
...@@ -335,7 +335,7 @@ and run `npm install` again. ...@@ -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: ...@@ -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: ...@@ -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/)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment