Issue during a gitlab ci pipline

Hello,

i’m trying to build a simple maven project with gitlab-ci which below you’ll find it’s content:

image: docker:18-git

variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2

services:

  • docker:18-dind

stages:

  • build
  • deploy

build_artifacts:
image: maven:3-alpine
stage: build
script:
- mvn -B -DskipTests clean package
cache:
paths:
- ./m2/repository
tags:
- docker
only:
- slave

deploy_image:
image: docker:dind
stage: deploy
script:
- docker build -t test .
tags:
- docker
only:
- slave

so the first step start successfully but the second one give me the issue bellow

any ideas ?? for infos, the runner is installed in my local machine with docker as executor.