From 3332d874842c0d263834aa70f7e8d172470d6c84 Mon Sep 17 00:00:00 2001 From: Keegan Witt Date: Wed, 30 Aug 2017 00:15:59 -0400 Subject: [PATCH] added note about mounting volumes with uid other than 1000 --- gradle/content.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gradle/content.md b/gradle/content.md index b799cba5b..6064a0002 100644 --- a/gradle/content.md +++ b/gradle/content.md @@ -6,10 +6,12 @@ # 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 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 ` +`docker run --rm -v "$PWD":/home/gradle/project -w /home/gradle/project gradle:latest gradle ` **Note: Java 9 support is experimental**