From 3332d874842c0d263834aa70f7e8d172470d6c84 Mon Sep 17 00:00:00 2001 From: Keegan Witt Date: Wed, 30 Aug 2017 00:15:59 -0400 Subject: [PATCH 1/2] 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** From b17cc5c7dfc9dd2bb5924717ac97e2b225011559 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Mon, 9 Oct 2017 10:07:09 -0700 Subject: [PATCH 2/2] Update formatting to appease markdownfmt/Travis --- gradle/content.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/content.md b/gradle/content.md index 6064a0002..f8818dd99 100644 --- a/gradle/content.md +++ b/gradle/content.md @@ -6,7 +6,7 @@ # 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`). +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