Skip to content

Commit

Permalink
Avoid root owned files from docker (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwilter authored Jul 12, 2022
1 parent c52aa4c commit 7729f0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions amlb/runners/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def _start_container(self, script_params=""):
inst_name = f"{self.sid}.{str_sanitize(str_digest(script_params))}"
cmd = (
"docker run --name {name} {options} "
'-u "$(id -u $USER):$(id -g $USER)" '
"-v {input}:/input -v {output}:/output -v {custom}:/custom "
"--rm {image} {params} -i /input -o /output -u /custom -s skip -Xrun_mode=docker {extra_params}"
).format(
Expand Down

0 comments on commit 7729f0d

Please sign in to comment.