DEV Community

Discussion on: Run Kubernetes Pod with root privileges (not recommended)

Collapse
 
techworld_with_nana profile image
TechWorld with Nana

I have started the article by explicitly stating that this has a security issue. and for more context, I have done this as a quick fix, specifically for Jenkins that was running in a docker container. And if Jenkins job builds and pushes a Docker image, it will need the docker commands. So mounting the docker process into the Jenkins container was a work around I found for this case.

You are more than welcome to suggest SPECIFIC alternative solutions, instead of generally stating it's a bad solution, which I myself already mentioned in the article. Thanks.

Collapse
 
sebastiandg7 profile image
Sebastián Duque G • Edited

For other readers: running a container with root privileges is a DEFINITELY NO.

I kind of get you. The reason of why others are pointing this is a super bad practice/anti-pattern is because your post title is "Run Kubernetes Pod with root privileges" (tagged with #tutorial and with a very elaborated and motivational image), that title is more a How-To guide than an advice request. So yes, is important to point this is a bad practice before other more inexperienced devs/devops read it.

You could change your post's purpose asking for recommendations in how to fix your permissions issues, tag it with #help and you will see the difference in the replys.

Collapse
 
techworld_with_nana profile image
TechWorld with Nana

Thanks for pointing this out! I actually will adjust it, because could really be misleading

Thread Thread
 
exadra37 profile image
Paulo Renato

Still contains the tag tutorial.

This kind of article is what promotes bad practices all over the internet.

This just remembers the chmod 777 all around StackOverflow as a way of solving issues.

Thread Thread
 
techworld_with_nana profile image
TechWorld with Nana • Edited

I removed the tag..don't know why it was not saved.

Just archived it. I don't rely on that post anyway.