0
respostas

Erro docker info

Prezados, bom dia!

Estou tomando o seguinte erro

$ docker info
errors pretty printing info
Client:
 Debug Mode: false
Server:
ERROR: Cannot connect to the Docker daemon at tcp://docker:2375. Is the docker daemon running?

Segue meu arquivo .yml

image: docker:stable

stages:
- pre-build
- build
- test
- deploy

build-docker:
    services:
    - docker:dind

    before_script:
    - docker info
    - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD

    stage: pre-build
    script:
    - docker build -t minha-imagem .
    - docker tag minha-imagem limarenan/minha-imagem:latest
    - docker push limarenan/minha-imagem:latest

build-project:
    services:
    - docker:dind
    - mysql:5.7
    variables:
        MYSQL_USER: devops_dev 
        MYSQL_PASSWORD: mestre
        MYSQL_DATABASE: todo_dev 
        MYSQL_ROOT_PASSWORD: senha

        DB_NAME: 'todo_dev'
        DB_USER: 'devops_dev'
        DB_PASSWORD: 'mestre'
        DB_PORT: '3309'
        DB_HOST: 'mysql'
        SECRET_KEY: 'r*5ltfzw-61ksdm41fuul8+hxs$86yo9%k1%k=(!@=-wv4qtyv'

    stage: build
    image: limarenan/minha-imagem:latest
    tags:
    - executor-tarefas
    dependencies:
    - build-docker
    script:
    - python manage.py makemigrations
    - python manage.py migrate