---
title: "Discussion on \"DevOps 101 - Deploying & Configuring Jenkins on AWS server\" | Hashnode"
description: "Discussion on \"DevOps 101 - Deploying & Configuring Jenkins on AWS server\". Hello!\nIn this series, we are going to learn how we can enable the entire devops CI/CD pipeline for a custom application that can be deployed to the production. The goal of this series to deploy our Next.js application on Kubernetes.\nOur CI/CD pipeli..."
url: "https://hashnode.com/posts/install-and-configure-jenkins-on-amazon-ami/5f747e7a1128ad1e33d55213"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [DevOps 101 - Deploying & Configuring Jenkins on AWS server](https://djaytechdiary.com/install-and-configure-jenkins-on-amazon-ami?utm_source=hashnode&utm_medium=feed)

Hello! In this series, we are going to learn how we can enable the entire devops CI/CD pipeline for a custom application that can be deployed to the production. The goal of this series to deploy our Next.js application on Kubernetes. Our CI/CD pipeli...

Sep 30, 2020 · 4 min read · djaytechdiary.com  
Updated Oct 21, 2020  
Read the article

-   [#devops](https://hashnode.com/tag/devops)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#jenkins](https://hashnode.com/tag/jenkins)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

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

@desaijay · Mumbai

  
[View profile](https://hashnode.com/@desaijay)

Be useful rather than just purposeful

Hey there! I'm Jay. 👨🏻‍💻 About Me 🤔 Exploring new technologies and developing software solutions and quick hacks. 🎓 Bachelors of Engineering from Mumbai University. 🌱 Learning more about Cloud Architecture, Systems Design and Artificial Intelligence. ✍️ Pursuing Blog Writing as hobbies/side hustles. 🛠 Tech Stack 🌐 JavaScript | Bootstrap | Node.js | ReactJS 💻 DevOps | Cloud | CI/CD | AWS | AZURE 🛢 MySQL | MongoDB | PostgreSQL 🔧 Git | Markdown

## Responses 1

Markdown supported · ⌘↵ to post

[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?

[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
