r/docker • u/Mr_LA • Nov 20 '23
The Ultimate Docker Cheat Sheet
Hello Docker Community!
As a university lecturer, I know the importance of sharing knowledge. That's why I'm excited to share a comprehensive Docker Cheat Sheet that I've created. It is available as PDF and PNG. It's completely free, with no email signup or any other requirements.
This Cheat Sheet is part of my detailed blog post about Docker. Here is the link: https://devopscycle.com/blog/the-ultimate-docker-cheat-sheet/ It walks through the essentials of Docker, including Dockerfiles, images, and containers. You will also learn about accessing running containers and how to persist data. The post also includes a public GitHub repository. It comes with all the source code, available for anyone to use and learn from. It is an excellent entry point for an internal hackathon at your company or university.
If you like the blog post, the Docker Cheat Sheet or the GitHub repository, I would appreciate it if you share it. Your feedback and experiences are always welcome. Let's keep learning and growing together!
Cheers,
Mr_LA
2
2
u/root_switch Nov 21 '23
Nice work! Needs a little section for swarm :)
1
u/Mr_LA Nov 21 '23
Yep, the article would have gotten too long.
It's a good idea for a separate article and cheat sheet, maybe.
2
u/lgLindstrom Nov 21 '23
What about users and user permissions?
1
u/Mr_LA Nov 21 '23
What about users and user permissions
That is also important, but the article is already covering a lot. Could you please elaborate on what exactly you want to see?
3
u/lgLindstrom Nov 21 '23
As I understand containers running as root. This means that Volumes have files with root permissions which is messy when I am logged in as a user. I understand there is a way to handle this but I never understood how.
1
u/ofoxtrot Dec 11 '23
what's the font you are using there? I mean in the image with cheatsheet
1
u/Mr_LA Dec 11 '23
poppins for the headings, open sans for the paragraphs and IBM plex mono for the code
1
0
6
u/Stutturdreki Nov 20 '23
Nice.
I believe there is an error in the png under '# remove container', the png says 'docker stop <container-id>' while the blog correctly says 'docker rm <container-id>'.
Personally, I would suggest also running update & upgrade in your docker files. Had issues with security scanners when pushing and deploying docker files, even when using latest official images.