diff --git a/app/daemon/corpus_utils.py b/app/daemon/corpus_utils.py index 78e17f29..228eb64e 100644 --- a/app/daemon/corpus_utils.py +++ b/app/daemon/corpus_utils.py @@ -87,7 +87,8 @@ class CheckCorporaMixin: labels=labels, mounts=mounts, name=name, - restart_policy=restart_policy + restart_policy=restart_policy, + user='0:0' ) except docker.errors.APIError as e: current_app.logger.error( @@ -194,9 +195,10 @@ class CheckCorporaMixin: command=command, detach=detach, entrypoint=entrypoint, - volumes=volumes, name=name, - network=network + network=network, + user='0:0', + volumes=volumes ) except docker.errors.ImageNotFound as e: current_app.logger.error( diff --git a/app/daemon/job_utils.py b/app/daemon/job_utils.py index d65fc3be..5f05681f 100644 --- a/app/daemon/job_utils.py +++ b/app/daemon/job_utils.py @@ -133,7 +133,7 @@ class CheckJobsMixin: name=name, resources=resources, restart_policy=restart_policy, - user='1000:1000' + user='0:0' ) except docker.errors.APIError as e: current_app.logger.error(