Skip to main content

Posts

Showing posts with the label DevOpsAL

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Root cause of this error message is only that DOCKER_HOST variable has not been exported to all the users. In my case it was working fine while I was running docker commands as root user but when I tried the same commands from Jenkins, didn't work. To understand this issue in detail let me create such environment and see troubleshooting steps. Docker Host - [root@server106 ~]# hostname server106.example.com Docker Client - [root@server109 ~]# hostname server109.example.com [root@server109 ~]# docker ps -a CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES [root@server109 ~]# docker ...

DevOps : Integration of Git, GitHub, Jenkins, Docker and Linux

  If you have knowledge of a subject, it is always great but if know how and where you can utilize it became your talent. Likewise if you have knowledge of some technologies and also know how to use them. In other words I would like to say, you know how to integrate these technologies? Just by doing this you can create your own product, you can become a creator. I have lots of examples of it, but one of them is OpenStack (Collection of lots of services like Glance, shift, cinder, nova, neutron, Gnocchi etc).   I am also writing this post to show you an interesting demo. In which I'll integrate multiple tools like Git, GitHub, Jenkins, Docker, Linux etc. and I will try to solve a use case. We have a web app developed by multiple developers will be first of all deploy in test environment, Then it will be checked by UAT team and if everything is fine and approved all the requirement from QAT team then automatically deployed in production environment. So lets start with...

Push a local repository on GitHub and Configure web server automatically.

If you are looking for a solution that your developer develop a web app and you would like to manage it using SCM(Git) and then share code on GitHub. After that move web app code in document root of web server. So in short we can say that how to deploy web application using Jenkins? Step 1 :- Create Git local repository Priyanshi@Priyanshi-PC MINGW64 /d/My/Msi Laptop/Training/DevOpsAL/Practice/Day4 $ pwd /d/My/Msi Laptop/Training/DevOpsAL/Practice/Day4 $ ls $ mkdir myws4 $ cd myws4/ $ ls -la total 4 drwxr-xr-x 1 Priyanshi 197121 0 May  3 11:09 ./ drwxr-xr-x 1 Priyanshi 197121 0 May  3 11:09 ../ drwxr-xr-x 1 Priyanshi 197121 0 May  3 11:09 .git/ $ touch index.html web.html $ cat >> index.html This is my home page $ cat >> web.html This is my another web page $ ls index.html  web.html $ git init Initialized empty Git repository in D:/My/MsiLaptop/Training/DevOpsAL/Practice/Day4/myws4/.git/ $ git ad...