---
title: "Comment by Kavitha Ranga on \"Push your Docker containers from GitLab to Amazon ECR\" | Hashnode"
description: "hi, I get the error ERROR: Cannot connect to the Docker daemon at tcp://docker:2376. Is the docker daemon running? Also tried the same with port 2375 with no lu"
url: "https://hashnode.com/posts/push-your-docker-containers-from-gitlab-to-amazon-ecr/5ffc7523aa5c467fe155b129/comment/61919370770afc563f667c00"
---

[Discussion](https://hashnode.com/posts/push-your-docker-containers-from-gitlab-to-amazon-ecr/5ffc7523aa5c467fe155b129)

Comment [Push your Docker containers from GitLab to Amazon ECR](https://hashnode.com/posts/push-your-docker-containers-from-gitlab-to-amazon-ecr/5ffc7523aa5c467fe155b129)

[Kavitha Ranga](https://hashnode.com/@cicd)

[Nov 14, 2021](https://hashnode.com/posts/push-your-docker-containers-from-gitlab-to-amazon-ecr/5ffc7523aa5c467fe155b129/comment/61919370770afc563f667c00)

hi, I get the error **_ERROR: Cannot connect to the Docker daemon at tcp://docker:2376. Is the docker daemon running?_**

Also tried the same with port 2375 with no luck. For this to work, should Gitlab runner be running in privileged = true mode?

Any suggestions. thanks,

[DINA](https://hashnode.com/@cisel)

[Nov 17, 2021](https://hashnode.com/posts/push-your-docker-containers-from-gitlab-to-amazon-ecr/5ffc7523aa5c467fe155b129/comment/61919370770afc563f667c00#reply-6195153390fac127e6ea4f0a)

Hi Kavitha, Do you have docker on the image of your stage where you're trying to build your docker container ? Here we use a dind service (docker in docker) :

```
publish:
  stage: build
  image: 
    name: docker:latest
  services:
    - docker:19-dind
```

Hope it helps ! Best regards
