Reputation: 1037
I had setup Jenkins using the Jenkins Docker Image on an AWS ECS Cluster with just one EC2 instance.
After the initial setup, I tried running the hello-world pipeline from Jenkins documentation. I see that I am getting "docker: not found"
I understand that this is because Docker is not installed and available within the Jenkins Docker container. However, I have a fundamental question on whether I should proceed with installing Docker inside the running Jenkins Docker container (to use that as the base image) or not. When I researched around, I found this blog post and this SO Answer.
I wanted to follow these suggestions and I tried mounting the volume /usr/bin/docker
and the socket /var/run/docker.sock
from the host EC2 / ECS instance to the Jenkins Container. After this, when I ran the docker version
command to test the setup, I am getting linux library issues - docker: error while loading shared libraries: libltdl.so.7: cannot open shared object file: No such file or directory
which indicates that the setup did not go well.
Here are my questions -
My end goal is to create 2 types of Jenkins jobs that do the following -
Jenkins Job Type 1
Jenkins Job Type 2
Asking these questions after a good amount of research and not finding answers. Any guidance is appreciated. Thanks.
Upvotes: 1
Views: 575
Reputation: 730
I Googled the docker error you included in your post and found this StackOverflow post.
You have to install libltdl-dev in order to get everything working correctly
Since the errors are identical I suggest you give it a shot. As per the post, install libltdl-dev in the docker container.
Upvotes: 1