DEV Community

One of those wtf moments when using docker

Zafri Zulkipli on May 11, 2019

I've been using docker for a year and a half now. Since then I've learned many neat and cool tricks about docker. I'm gonna share with you one part...
Collapse
 
kwmlodozeniec profile image
Krzysztof

I personally feel using docker for nuke type operations to circumvent potential permission issues is a bad idea. Permissions are a safeguard at the end of the day.

Collapse
 
zaffja profile image
Zafri Zulkipli

When I first found out about this, I had the same thoughts as well. But eventually I encounter more and more problems regarding permissions, thus making me trade security for convenience.

Although I highly don't recommend doing this for production applications as well. But I just use this for my pet projects as well as for learning purposes.

Collapse
 
dmfay profile image
Dian Fay

It still seems like you're going to a lot of trouble for it compared to setting NOPASSWD: ALL in sudoers. And it's easy to forget what you did in a makefile and publish it.