Skip to content

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

Description

@yunits

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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions