Tag: jenkins

How to run a docker command in Jenkins Build Execute Shell

I’m new to Jenkins and I have been searching around but I couldn’t find what I was looking for. I’d like to know how to run docker command in Jenkins (Build – Execute Shell): Example: docker run hello-world I have set Docker Installation for “Install latest from docker.io” in Jenkins Configure System and also have […]

Access docker within container on jenkins slave

my question is basically a combination of Access Docker socket within container and Accessing docker host from (jenkins) docker container My goal to run Jenkins fully dockerized including dynamic slaves and being able to create docker-containers within the slaves. Except for the last part everything is already working thanks to https://github.com/maxfields2000/dockerjenkins_tutorial if the Unix-docker-sock is […]

Tagging docker images and adding variables in docker-compose

I’m using docker to build and deploy applications. After building the image i need to tag and use that image from another system which has docker-compose on it. I’m using Jenkins to build and deploy images to private docker registries. Docker compose file on the host system should automatically pull those images based on tag […]

Why Docker resets connection upon pushing an image to a private registry?

We have a Docker private registry, listening on a non-default port (specified in our docker run command). However, our attempts to push an image (either pre-built, or built via Jenkins) fail with an error message (see bold below). Help at your earliest convenience will be much appreciated. We simply installed Docker on the machine and […]

Docker : Change open Jdk to oracle Jdk in Jenkins image

I am very new to docker and I am trying to run a Jenkins image. I pulled the image from the repository and now am able to run it using the command docker run -p 8080:8080 jenkinsci/jenkins By default it uses openjdk version 1.8. I would like to use oracle Jdk instead of openjdk. How […]

Jenkins shell script execution on different server

I have two VM, on one VM I have docker and on another I have Jenkins .I have shell script for running docker, which is placed on server which have docker on it. But I need Jenkins to execute this shell script, from pre-build step. I am facing problem with this process. It will be […]

Access docker /var/jenkins_home from my mac

I have just started using Docker into Mac. I have install first docker container called Jenkins. The Jenkins default home directory is: /var/jenkins_home How can I access this location from my mac?

Jenkins Docker container not copying pre-installed plugins to JENKINS_HOME on start

I cannot seem to get Jenkins to copy pre-installed plugins to the expected /var/jenkins_home/plugins directory on startup as documented here. I’m using a very basic Dockerfile: FROM jenkins:alpine USER root RUN /usr/local/bin/install-plugins.sh ssh-agent USER jenkins When I build the container, it says the plugins installed successfully and after I run the container: the plugins do […]

SonarQube server can not be reached by Jenkins using Docker

I have added a SonarQube Scanner analysis step to my Jenkins build, but the step fails: [Test_gitlab] $ /var/jenkins_home/tools/hudson.plugins.sonar.SonarRunnerInstallation/http_INTERNAL_DOCKER_IP_ADDRESS_9000/bin/sonar-scanner -e -Dsonar.host.url=SERVER_IP_ADDRESS:9000 ******** -Dsonar.projectBaseDir=/var/jenkins_home/workspace/Test_gitlab INFO: Option -e/–errors is no longer supported and will be ignored INFO: Scanner configuration file: /var/jenkins_home/tools/hudson.plugins.sonar.SonarRunnerInstallation/http_INTERNAL_DOCKER_IP_ADDRESS_9000/conf/sonar-scanner.properties INFO: Project root configuration file: NONE INFO: SonarQube Scanner 2.8 INFO: Java 1.8.0_102 Oracle Corporation (64-bit) […]

Could not find jenkins_home folder in Ubuntu after downloading the Docker Jenkins Image

I pulled Docker-Jenkins image from Docker central repository and run the below command $ docker run -p 8080:8080 -p 50000:50000 Jenkins In the middle of the installation, the below lines appeared. *************************************************************************` Jenkins initial setup is required. An admin user has been created and a password generated. Please use the following password to proceed to […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.