Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tips-and-tricks/how-to-use-bind-mounting is missing on github #6

Open
yunits opened this issue Jan 26, 2022 · 2 comments
Open

tips-and-tricks/how-to-use-bind-mounting is missing on github #6

yunits opened this issue Jan 26, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@yunits
Copy link

yunits commented Jan 26, 2022

Thanks for supplying such an easy to use dev environment.

I just want to mention, that the part here is not correct:
https://docs.dockware.io/tips-and-tricks/how-to-use-bind-mounting#3.-set-permissions

if I just use "chgrp -R www-data src" it would use the groupID of my Host System. And if there is no webserver installed?... How would you know that the groupId is the same?

Maybe as Step 0 "how to get container name" docker ps
Step 1 should be to connect to the container using ssh (docker exec -it CoNtAiNerNaMe /bin/bash)
Step 2 is to run command on host system "id www-data" to get the ID. (in my case it was 33 so maybe you can simply change www-data to 33, if it gets the same ID every time.)

and now we can use "chgrp -R 33 src"

@boxblinkracer
Copy link
Contributor

Hi

thank you for this and your kind words
didnt see this issue in the "docs repo" here :) sorry

regarding your questions and ideas:

"chgrp"...haha yeah...so it just changes to id "33" which is then used on both systems.
as far as i know www-data should always be 33...at least thats what I think and always thought :D

so to just change it to the id instead of the name, because the host doesnt know it, if no werbserver is installed.
thats what you mean right?

@boxblinkracer boxblinkracer added the enhancement New feature or request label Feb 17, 2022
@yunits
Copy link
Author

yunits commented Feb 17, 2022

yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants