Fix credential issues

This commit is contained in:
Patrick Jentsch 2022-04-25 15:21:30 +02:00
parent 10b5254e82
commit 51af30aff3
2 changed files with 6 additions and 4 deletions

View File

@ -87,7 +87,8 @@ class CheckCorporaMixin:
labels=labels, labels=labels,
mounts=mounts, mounts=mounts,
name=name, name=name,
restart_policy=restart_policy restart_policy=restart_policy,
user='0:0'
) )
except docker.errors.APIError as e: except docker.errors.APIError as e:
current_app.logger.error( current_app.logger.error(
@ -194,9 +195,10 @@ class CheckCorporaMixin:
command=command, command=command,
detach=detach, detach=detach,
entrypoint=entrypoint, entrypoint=entrypoint,
volumes=volumes,
name=name, name=name,
network=network network=network,
user='0:0',
volumes=volumes
) )
except docker.errors.ImageNotFound as e: except docker.errors.ImageNotFound as e:
current_app.logger.error( current_app.logger.error(

View File

@ -133,7 +133,7 @@ class CheckJobsMixin:
name=name, name=name,
resources=resources, resources=resources,
restart_policy=restart_policy, restart_policy=restart_policy,
user='1000:1000' user='0:0'
) )
except docker.errors.APIError as e: except docker.errors.APIError as e:
current_app.logger.error( current_app.logger.error(