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

Warn user if plugins/docker is running in a non Privileged mode #170

Closed
arno01 opened this issue Feb 11, 2018 · 4 comments
Closed

Warn user if plugins/docker is running in a non Privileged mode #170

arno01 opened this issue Feb 11, 2018 · 4 comments

Comments

@arno01
Copy link

arno01 commented Feb 11, 2018

Hi,

I have been struggling with plugins/docker unable to pull the image when using a custom Docker registry due to it was not running in a privileged mode which was not apparent, until I went into the drone-dind, paused the plugins/docker container before it has failed and did inspect it.

So, I think it might have some sense to have some mechanism to warn a user if plugins/docker is running in a non Privileged mode.

I am wondering, is this expected that plugins/docker container is automatically starting in a privileged mode without having the privileged: true in .drone.yml ?

It is clear that whoever uses plugins/docker would need to run it in a privileged mode.

But how would one prevent a non-admin user from setting privileged: true (when the repo Trusted: false), while keeping the same behavior, except when the plugins/docker is running from a custom docker registry?

How does Drone decide that plugins/docker needs to run in a privileged mode and is this valid only to this particular plugin when it is pulled from the official Docker Hub registry?

@bradrydzewski
Copy link
Member

Drone automatically runs plugins/docker in privileged mode.

@arno01
Copy link
Author

arno01 commented Feb 11, 2018

@bradrydzewski

I this valid only for the plugins/docker ? Could you point me to the reference in the code?

I am wondering, how would one prevent a non-admin user from setting privileged: true (when the repo Trusted: false), while keeping the same behavior, except when the plugins/docker is running from a custom docker registry?

@bradrydzewski
Copy link
Member

bradrydzewski commented Feb 11, 2018

Let's continue this discussion in the discourse thread.

@myers
Copy link

myers commented Jan 8, 2019

Let's continue this discussion in the discourse thread.

(for those following along later the thread he's talking about is: https://discourse.drone.io/t/solved-plugins-docker-cannot-pull-the-image-from-a-custom-docker-registry/1748)

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

3 participants