0
respostas

Quando peço para ele executar docker-compose up -d, pelo ssh do Gitlab-Runner ele diz nao ter previlegio.

Apresenta o seguinte erro no final:

'Credentials store docker-credential-desktop exited with "error getting credentials - err: exit status 1, out: User interaction is not allowed.".'

(base) MZ2:deploy joshua$ docker-compose up -d
Docker Compose is now in the Docker CLI, try `docker compose up`

Pulling db (mysql:8.0.17)...
Traceback (most recent call last):
  File "docker/credentials/store.py", line 79, in _execute
  File "subprocess.py", line 420, in check_output
  File "subprocess.py", line 524, in run
subprocess.CalledProcessError: Command '['/usr/local/bin/docker-credential-desktop', 'get']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker/auth.py", line 264, in _resolve_authconfig_credstore
  File "docker/credentials/store.py", line 35, in get
  File "docker/credentials/store.py", line 93, in _execute
docker.credentials.errors.StoreError: Credentials store docker-credential-desktop exited with "error getting credentials - err: exit status 1, out: `User interaction is not allowed.`".

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose/cli/main.py", line 81, in main
  File "compose/cli/main.py", line 202, in perform_command
  File "compose/metrics/decorator.py", line 18, in wrapper
  File "compose/cli/main.py", line 1188, in up
  File "compose/cli/main.py", line 1168, in up
  File "compose/project.py", line 671, in up
  File "compose/service.py", line 359, in ensure_image_exists
  File "compose/service.py", line 1291, in pull
  File "compose/progress_stream.py", line 99, in get_digest_from_pull
  File "compose/service.py", line 1258, in _do_pull
  File "docker/api/image.py", line 411, in pull
  File "docker/auth.py", line 47, in get_config_header
  File "docker/auth.py", line 324, in resolve_authconfig
  File "docker/auth.py", line 235, in resolve_authconfig
  File "docker/auth.py", line 280, in _resolve_authconfig_credstore
docker.errors.DockerException: Credentials store error: StoreError('Credentials store docker-credential-desktop exited with "error getting credentials - err: exit status 1, out: `User interaction is not allowed.`".')
[4647] Failed to execute script docker-compose
(base) MZ2:deploy joshua$ Connection to 192.168.1.122 closed by remote host.
Connection to 192.168.1.122 closed.