Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

1.4K
Vistas
ERROR: Trabajo fallido: comando terminado con código de salida 1

Seguí Conexión de GitLab con un clúster de Kubernetes | GitLab y GitLab Runner y ahora intentan seguir la Referencia de configuración de canalización de CI/CD de GitLab , pero se encuentran con el siguiente error:

No se puede conectar al demonio Docker en unix:///var/run/docker.sock. ¿Se está ejecutando el demonio docker?

trabajo:

 Running with gitlab-runner 11.10.1 (1f513601) on runner-gitlab-runner-5b8d5bf7db-5phqs 3gRXuKPT Using Kubernetes namespace: gitlab-managed-apps Using Kubernetes executor with image docker:latest ... Waiting for pod gitlab-managed-apps/runner-3grxukpt-project-18-concurrent-1m7ttl to be running, status is Pending Running on runner-3grxukpt-project-18-concurrent-1m7ttl via runner-gitlab-runner-5b8d5bf7db-5phqs... Initialized empty Git repository in /builds/X/test/.git/ Fetching changes... Created fresh repository. From https://gitlab.X.com/X/test * [new branch] master -> origin/master Checking out 72b6895d as master... Skipping Git submodules setup $ docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY WARNING! Using --password via the CLI is insecure. Use --password-stdin. Login Succeeded WARNING! Your password will be stored unencrypted in /root/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store $ docker build --pull -t "$CI_REGISTRY_IMAGE" . Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? ERROR: Job failed: command terminated with exit code 1

.gitlab-ci.yml :

 # This file is a template, and might need editing before it works on your project. # Official docker image. image: docker:latest services: - docker:dind before_script: - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY build-master: stage: build script: - docker build --pull -t "$CI_REGISTRY_IMAGE" . - docker push "$CI_REGISTRY_IMAGE" only: - master build: stage: build script: - docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" . - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" except: - master

Por favor avise.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

en mi caso, tuve que agregar las siguientes variables en .gitlab-ci.yml :

 services: - docker:dind variables: DOCKER_HOST: tcp://localhost:2375/ DOCKER_DRIVER: overlay2
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda