Skip to content

Commit

Permalink
Set selinux label when mounting docker volumes
Browse files Browse the repository at this point in the history
When using selinux, docker volumes need to be mounted with :Z in order
to work properly.

Bug: treasure-data#1663
  • Loading branch information
ehaupt committed Dec 6, 2021
1 parent bd66ae8 commit 126b444
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private Process startDockerProcess(final CommandContext context,

// mount
command.add("-v").add(String.format(ENGLISH,
"%s:%s:rw", projectPath, projectPath)); // use projectPath to keep pb.directory() valid
"%s:%s:rw,Z", projectPath, projectPath)); // use projectPath to keep pb.directory() valid

// working directory
final Path workingDirectory = getAbsoluteWorkingDirectory(context, request); // absolute
Expand Down

0 comments on commit 126b444

Please sign in to comment.