From 51af30aff347e4335f31b9e9aa4aeb08ec6c8a6f Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Mon, 25 Apr 2022 15:21:30 +0200
Subject: [PATCH] Fix credential issues
---
app/daemon/corpus_utils.py | 8 +++++---
app/daemon/job_utils.py | 2 +-
2 files changed, 6 insertions(+), 4 deletions(-)
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(