Giter Club home page Giter Club logo

Comments (7)

mtscout6 avatar mtscout6 commented on June 20, 2024

Normally I wouldn't want to be on the bleeding edge of jenkins, but I'm trying to use the Docker Plugin to then have dynamic slaves. However, with Docker v1.2.0 I need to have at least jenkins 1.580, but 1.583 is the only tagged version greater than 1.580. (See: jenkinsci/docker-plugin#97)

from docker.

mtscout6 avatar mtscout6 commented on June 20, 2024

I should mention that if I do not attach the data volume it works fine. When I ran docker run --rm -it jenkins:1.583 /bin/sh and observed the contents of /var/jenkins_home/ it was empty as I'd expect. So, I'm sure the image is not supplying anything to that directory that the volume would override.

from docker.

davidkarlsen avatar davidkarlsen commented on June 20, 2024

You are probably not running the docker container as the same user (-u
) which owns the files in the mounted volume.

2014-10-09 18:15 GMT+02:00 Matt Smith [email protected]:

I should mention that if I do not attach the data volume it works fine.
When I ran docker run --rm -it jenkins:1.583 /bin/sh and observed the
contents of /var/jenkins_home/ it was empty as I'd expect. So, I'm sure
the image is not supplying anything to that directory that the volume would
override.


Reply to this email directly or view it on GitHub
#25 (comment)
.

David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

from docker.

mtscout6 avatar mtscout6 commented on June 20, 2024

From the readme:

First, ensure that /your/home is accessible by the jenkins user in container (jenkins user - uid 102 normally - or use -u root), then:

That is the owner of that volume https://github.com/mtscout6/jenkins-docker/blob/master/jenkins-data/Dockerfile#L5-L7

I should mention that that setup worked fine against 1.565.

from docker.

mtscout6 avatar mtscout6 commented on June 20, 2024

I finally found the problem. The uid for the jenkins user is not 102 it's 1000

➜  jenkins-docker git:(master) ✗ docker run --rm -it jenkins:1.583 /bin/sh
$ cat /etc/passwd | grep jenkins
jenkins:x:1000:1000::/var/jenkins_home:/bin/bash

Change uid from 102 -> 1000 and worked like a charm: https://github.com/mtscout6/jenkins-docker/blob/master/jenkins-data/Dockerfile#L5

Is this intentional or should docs get updated, or am I misunderstaning what 102 represents on the readme?

from docker.

dzuluaga avatar dzuluaga commented on June 20, 2024

I'm running into a similar error. Without volume -v, it works fine. However, when using volume, it hangs in this entry on the log file:

INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Nov 03, 2014 2:12:50 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization

Any clues?

from docker.

dzuluaga avatar dzuluaga commented on June 20, 2024

Nevermind, it was just slow, after like 5 minutes it finally started. I wonder why though.

from docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.