瀏覽代碼

Merge pull request #1001 from keeganwitt/gradle

added note about mounting volumes with uid other than 1000
Tianon Gravi 8 年之前
父節點
當前提交
949b80ef91
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      gradle/content.md

+ 3 - 1
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 <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**