---
title: "Comment by Rohan Büchner on \"DevOps 101 - Deploying & Configuring Jenkins on AWS server\" | Hashnode"
description: "Thank you for this awesome set of articles. I&#39;ve been using it to get my own CICD up. I did deviate a little from your set of articles, and added blue ocean"
url: "https://hashnode.com/posts/install-and-configure-jenkins-on-amazon-ami/5f747e7a1128ad1e33d55213/comment/60178cc16f46cc1ff950acae"
---

[Discussion](https://hashnode.com/posts/install-and-configure-jenkins-on-amazon-ami/5f747e7a1128ad1e33d55213)

Comment [DevOps 101 - Deploying & Configuring Jenkins on AWS server](https://hashnode.com/posts/install-and-configure-jenkins-on-amazon-ami/5f747e7a1128ad1e33d55213)

[Rohan Büchner](https://hashnode.com/@rohanbuchner)

[Feb 1, 2021](https://hashnode.com/posts/install-and-configure-jenkins-on-amazon-ami/5f747e7a1128ad1e33d55213/comment/60178cc16f46cc1ff950acae)

Thank you for this awesome set of articles. I've been using it to get my own CICD up. I did deviate a little from your set of articles, and added blue ocean. I'm however getting some issues where jenkins cant see docker. Do you perhaps know how to get past it?

This is the issue I'm seeing.

```
+ docker pull lts-alpine

Using default tag: latest

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/create?fromImage=lts-alpine&tag=latest: dial unix /var/run/docker.sock: connect: permission denied

script returned exit code 1
```

I have tried a few different articles suggested routes, but I'm not sure if I did it right or wrong / the solutions aren't correct for this use case?

[Jay Desai](https://hashnode.com/@desaijay)

[Feb 1, 2021](https://hashnode.com/posts/install-and-configure-jenkins-on-amazon-ami/5f747e7a1128ad1e33d55213/comment/60178cc16f46cc1ff950acae#reply-6017928aa4a28d1fcefce210)

Hi [Rohan Büchner](https://hashnode.com/@rohanbuchner), Did your docker user is given same permission like Jenkins user - the command looks like -

`sudo usermod -a -G dockeruser jenkinsuser`

[Jay Desai](https://hashnode.com/@desaijay)

[Feb 1, 2021](https://hashnode.com/posts/install-and-configure-jenkins-on-amazon-ami/5f747e7a1128ad1e33d55213/comment/60178cc16f46cc1ff950acae#reply-60179337a4a28d1fcefce218)

[Rohan Büchner](https://hashnode.com/@rohanbuchner), you can also check how this is done with Ansible here, similarly you can make it happen for docker -

[djaytechdiary.com/aws-devops-deploying-nextjs-app…](https://djaytechdiary.com/aws-devops-deploying-nextjs-application-on-ansible)

[Rohan Büchner](https://hashnode.com/@rohanbuchner)

[Feb 1, 2021](https://hashnode.com/posts/install-and-configure-jenkins-on-amazon-ami/5f747e7a1128ad1e33d55213/comment/60178cc16f46cc1ff950acae#reply-60179a3da4a28d1fcefce27e)

[Jay Desai](https://hashnode.com/@desaijay)

Thank you that makes a lot of sense. To be honest, I don't know what my jenkins user is. I used your article as per above. (WHich I dont think specifies how to give jenkins a user?) If I had to guess, I'm getting the idea the service is running as root?

[Jay Desai](https://hashnode.com/@desaijay)

[Feb 1, 2021](https://hashnode.com/posts/install-and-configure-jenkins-on-amazon-ami/5f747e7a1128ad1e33d55213/comment/60178cc16f46cc1ff950acae#reply-60179ccda4a28d1fcefce2a7)

[Rohan Büchner](https://hashnode.com/@rohanbuchner), Do you two different instances running for Jenkins and Docker?

[Jay Desai](https://hashnode.com/@desaijay)

[Feb 1, 2021](https://hashnode.com/posts/install-and-configure-jenkins-on-amazon-ami/5f747e7a1128ad1e33d55213/comment/60178cc16f46cc1ff950acae#reply-60179e466f46cc1ff950adb7)

[Rohan Büchner](https://hashnode.com/@rohanbuchner) , If you are on the same server you can create the docker group and add your user to that group

`sudo groupadd docker`

`sudo usermod -aG docker your-user`

Logout and Login. Verfiy the docker commands are run without sudo
