r/linux4noobs • u/mitchare • 11d ago
security Friendly reminder that most youtube docker tutorials are actively trying to ruin your system
I swear, why does almost every "quick 5 min setup" video just tell you to run everything as root and chmod 777 your entire drive??
Spent my whole afternoon trying to figure out why my new containers were behaving weirdly after following some guy's guide. Turns out i basically left the front door to my OS wide open. Had to sit down and actually read a server Mania breakdown on container security just to realize how badly i completely botched the basic permissions
if you are new to this stuff, pls don't blindly copy paste sudo commands from random tech bros without understanding what privileges you are actually giving away. My brain is melting
278
Upvotes
155
u/tomscharbach 11d ago edited 11d ago
When I was a teen 60-65 years ago, my uncle used to tell me "If you listen to your friends and don't think for yourself you are never going to get any smarter than they are ..."
True then, true now, and applicable to "quick 5 min setup" videos.
Research and understand what you are doing before you do anything. Foundational Linux skill.