Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting jenkins uid = 1000 conflicts with host #165

Closed
anthonygreen opened this issue Nov 1, 2015 · 3 comments
Closed

Setting jenkins uid = 1000 conflicts with host #165

anthonygreen opened this issue Nov 1, 2015 · 3 comments

Comments

@anthonygreen
Copy link

The Dockerfile states

# Jenkins is run with user `jenkins`, uid = 1000
# If you bind mount a volume from the host or a data container, 
# ensure you use the same uid
RUN useradd -d "$JENKINS_HOME" -u 1000 -m -s /bin/bash jenkins

Ubuntu's install user (with admin privileges) defaults to uid 1000

Should container's jenkins user default to a higher uid so that the volume on host can belong to a different user with less privileges ?

@carlossg
Copy link
Contributor

carlossg commented Nov 1, 2015

see https://github.com/jenkinsci/docker#usage
use docker -u option

@carlossg carlossg closed this as completed Nov 1, 2015
@anthonygreen
Copy link
Author

That results in an error

/usr/local/bin/jenkins.sh: line 25: /var/jenkins_home/copy_reference_file.log: Permission denied

@carlossg
Copy link
Contributor

carlossg commented Nov 2, 2015

that was fixed time ago, see #112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants