Insufficient privileges to use volumes


#1

Hi team i facing issue to create docker image with drone. My drone both containers are up and running fine, and i tested sample file, and it is worked fine but i am unable to create docker images with drone. below is the .drone.yml file which i am using to create docker image.

pipeline:
build:
image: docker
commands:
- docker build -t sravan1265/Drone-AWS .
volumes:
- /var/run/docker.sock:/var/run/docker.sock

Please help me in this. I was stuck in this from last 7 days.


#2

Hi Team,

I have fixed the issue. The issue is in the Drone UI, i have enabled Project settings as a “Trusted”.
Now its working fine

Thanks
Sravan


#3

could you please explain where to do in github?


#4

this has to be enabled by a sysadmin in the repository settings in Drone. I think if you search this forum you might be able to find more detailed instructions with screenshots.


#5

I struggled with that, too. You have to make your user an admin. Then you can tick the “Trusted” checkbox in the repository settings in Drone. If you don’t make your user an admin, Drone silently doesn’t save the “Trusted” flag.

image


#6

the trusted flag should be hidden for non-admins, but there has been a ton of activity in the UI over the past few weeks (this screen was just redone too) and maybe the logic to hide the trusted flag was accidentally removed …


#7

@bradrydzewski for the it event showed up if my user is not an admin. Should I file a bug for that?


#8

sure, at https://github.com/drone/drone-ui