Update README.md

This commit is contained in:
kongkrit 2020-01-03 02:04:24 +07:00 committed by GitHub
parent 345d06c675
commit a0eaf2ad27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -23,15 +23,15 @@ docker run -d \
### More on PUID and PGID from [linuxserver.io](https://hub.docker.com/r/linuxserver/duckdns) ### More on PUID and PGID from [linuxserver.io](https://hub.docker.com/r/linuxserver/duckdns)
When using volumes (-v flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`. When using volumes (-v flags), permissions issues can arise between the host OS and the container. We avoid this issue by allowing you to specify the user `PUID` and group `PGID`.
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic. Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
In this instance `PUID=1000` and `PGID=1000`, to find yours use id user as below: In this instance `PUID=1000` and `PGID=1000`. To find yours use id user as below:
```
> $ id username $ id username
> uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup) uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)
```
You only need to set the PUID and PGID variables if you are mounting the `/var/www/html` folder You only need to set the PUID and PGID variables if you are mounting the `/var/www/html` folder
## Changelog ## Changelog