Merge pull request #1001 from keeganwitt/gradle
added note about mounting volumes with uid other than 1000
This commit is contained in:
commit
949b80ef91
|
|
@ -6,10 +6,12 @@
|
||||||
|
|
||||||
# How to use this image
|
# How to use this image
|
||||||
|
|
||||||
|
Note that if you are mounting a volume and the uid running Docker is not `1000`, you should run as user `root` (`-u root`).
|
||||||
|
|
||||||
## Building a Gradle project
|
## Building a Gradle project
|
||||||
|
|
||||||
Run this from the directory of the Gradle project you want to build.
|
Run this from the directory of the Gradle project you want to build.
|
||||||
|
|
||||||
`docker run --rm -v "$PWD":/project -w /project --name gradle gradle:alpine gradle <gradle-task>`
|
`docker run --rm -v "$PWD":/home/gradle/project -w /home/gradle/project gradle:latest gradle <gradle-task>`
|
||||||
|
|
||||||
**Note: Java 9 support is experimental**
|
**Note: Java 9 support is experimental**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue