Add agent.docker_args_extra_precedes_task, agent.protected_docker_extra_args

to prevent the same switch to be used by both `extra_docker_args` and the a Task's docker args
This commit is contained in:
allegroai
2023-12-20 17:42:36 +02:00
parent 2c7f091e57
commit 564f769ff7
4 changed files with 92 additions and 3 deletions

View File

@@ -189,6 +189,13 @@ agent {
# You can also pass host environments into the container with ["-e", "HOST_NAME=$HOST_NAME"]
# extra_docker_arguments: ["--ipc=host", "-v", "/mnt/host/data:/mnt/data"]
# Allow the extra docker arg to override task level docker arg (if the same argument is passed on both),
# if set to False, a task docker arg will override the docker extra arg
# docker_args_extra_precedes_task: true
# prevent a task docker args to be used if already specified in the extra_docker_arguments
# protected_docker_extra_args: ["privileged", "security-opt", "network", "ipc"]
# optional shell script to run in docker when started before the experiment is started
# extra_docker_shell_script: ["apt-get install -y bindfs", ]