[ https://issues.apache.org/jira/browse/FLINK-31231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17693785#comment-17693785 ]
CHEN Zhongpu commented on FLINK-31231: -------------------------------------- It seems that this issue only occurs in Mac/Linux, because When sharing files from Windows, Docker Desktop sets permissions on shared volumes to a default value of 0777 [1]. [1] https://docs.docker.com/desktop/troubleshoot/topics/#volumes > flink-playgrounds has permission errors in mounted files > -------------------------------------------------------- > > Key: FLINK-31231 > URL: https://issues.apache.org/jira/browse/FLINK-31231 > Project: Flink > Issue Type: Improvement > Reporter: CHEN Zhongpu > Priority: Minor > > In flink-playgrounds [1], we mount the folders under "/tmp` for both > jobmanager and taskmanager: > {code:java} > - /tmp/flink-checkpoints-directory:/tmp/flink-checkpoints-directory > - /tmp/flink-savepoints-directory:/tmp/flink-savepoints-directory {code} > Docker mounts host volumes preserving the host UUID and GUID (in Linux, they > are both 1000). However, the default user of flink image is "flink" who does > not have the writable permission. As a result, it will raise an error. > > There are two workaround solutions: > * Grant the world writable for those two folders (i.e., `chmod o+wx > /tmp/flink-checkpoints-directory`) > * Specify the user in docker-compose (i.e., "user: 1000:1000") > But the second method may not be applied in Windows host. > [1] https://github.com/apache/flink-playgrounds -- This message was sent by Atlassian Jira (v8.20.10#820010)