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

How you become root in Docker container on Jenkins pipeline #14

Closed
junkpiano opened this issue Jul 3, 2022 · 0 comments
Closed

How you become root in Docker container on Jenkins pipeline #14

junkpiano opened this issue Jul 3, 2022 · 0 comments
Labels

Comments

@junkpiano
Copy link
Owner

When you need to be root in docker container on Jenkins, you must append -u 0 in docker args.

agent {
    docker {
        image 'golang:alpine'
        args '-u 0'
    }
}

Then, you will be able to install dependencies using package manager like apt, apk(on Alpine Linux).

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

No branches or pull requests

1 participant