Comments (7)
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.
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.
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.
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.
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.
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.
Nevermind, it was just slow, after like 5 minutes it finally started. I wonder why though.
from docker.
Related Issues (20)
- Ship production build of Java 21 from Eclipse Temurin HOT 3
- Upgrade curl to >=8.4.0 to fix CVE-2023-38545 HOT 3
- CVE-2023-38039, CVE-2023-38408, CVE-2023-38039, CVE-2023-38039, CVE-2023-44487 HOT 4
- Unexpected loss of more precise labels in favor of less precise labels HOT 13
- The directory separator used in the Windows build script is dependent on the OS
- latest with jdk17 & almalinux HOT 2
- Update Docker Hub description with JDK17 images instead of JDK11 HOT 2
- Set JDK17 as the default JDK for Windows image
- Publish a Windows image for each supported Java version HOT 2
- `windowsservercore-2019` images use `windowsservercore-1809` as base image HOT 2
- Windows - There should be a set of weekly and LTS short tags not including Jenkins version in their names HOT 4
- After Jenkins docks with ldap, the first login the next day will display a password error. The second login will be successful, and submitting the pipeline using Jenkins' API will fail. Jenkins logs indicate that the connection to ldap has timed out
- JenkinsProject
- `jenkins-plugin-cli` reports `War not found, installing all plugins: /usr/share/java/jenkins.war` HOT 5
- CVE-2024-23897 still exists in latest LTS version jenkins/jenkins:2.440.1-lts-jdk11 HOT 2
- The repository 'https://packagecloud.io/github/git-lfs/debian bookworm InRelease' is not signed. HOT 1
- CVE-2024-22201 still appears in jenkins/jenkins:2.444-jdk11 image HOT 2
- pipeline-input-step:2.8 Test cases run failed (Server Issue) HOT 10
- Add ARM64 Support for Alpine JDK 11 and 17 - Inbound Agent HOT 8
- docker start container failed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker.