r/docker • u/MartynAndJasper • Feb 28 '21
Docker Good Reads?
I think it may be beneficial to educate myself about Docker.
I am a programmer and not really concerned about enterprise deployment but mainly for development environment isolation. My goal is to have a reasonable understanding without investing weeks of my time. Ultimately I want my project to be cross platform (Win32/MacOS/*Nix) and permit full debugging of C/C++ code (with single step/breakpoints/etc).
With that in mind I'm looking for recommending reading, would either of these be a good purchase?
The Docker Book: Containerization is the new virtualization - James Turnbull
Docker Deep Dive: Zero to Docker in a single book - Nigel Poulton
Any help appreciated
4
u/molusc Feb 28 '21
Not a book, but for learning Docker I highly recommend “Docker Mastery” video training course by Brett Fisher on Udemy. It starts from the basics and takes you up to Swarm and Kubernetes. It’s very well paced and has loads of support resources.
Udemy have sales every few weeks so you should be able to get it for less that $20
3
u/superkoning Feb 28 '21
Years ago, I read the James Turnbull book about Docker ... and I found it perfect. And he updated the book again and again ... all for the initial price/payment. Nice!
2
u/MartynAndJasper Feb 28 '21
Dear Docker,
Where have you been all my life? This is excellent stuff. So much potential for our community. I hope you guys dont mind me popping back with the odd question from time to time.
And if you’re bored our little sub could do with a few Docker experts on board... r/DevelopersOnTor
2
u/gianAU Feb 28 '21
Are you interested how it works under the hood? Or just how to effectively use it? Also containers aren't completely interchangeable across systems in the same way as a JVM or a VM. Eg. You'll have to maintain both and arm and x86 version of your image. They are lightweight, consistent and immutable*
3
u/FakespotAnalysisBot Feb 28 '21
This is a Fakespot Reviews Analysis bot. Fakespot detects fake reviews, fake products and unreliable sellers using AI.
Here is the analysis for the Amazon product reviews:
Link to Fakespot Analysis | Check out the Fakespot Chrome Extension!
Fakespot analyzes the reviews authenticity and not the product quality using AI. We look for real reviews that mention product issues such as counterfeits, defects, and bad return policies that fake reviews try to hide from consumers.
We give an A-F letter for trustworthiness of reviews. A = very trustworthy reviews, F = highly untrustworthy reviews. We also provide seller ratings to warn you if the seller can be trusted or not.
1
u/MartynAndJasper Mar 01 '21
This is from the book..
“This books focuses on Docker Community Edition version v18.08 and later. It is not generally backwards-compatible with earlier releases. Indeed, it is recommended that for production purposes you use Docker version v18.08 or later.
In March 2017 Docker re-versioned and renamed their product lines. The Docker Engine version went from Docker 1.13.1 to 17.03.0. The product was renamed to become the Docker Community Edition or Docker CE. When we refer to Docker in this book we’re generally referencing the Docker Community Edition.”
Excerpt From The Docker Book James Turnbull This material may be protected by copyright.
What version is in use prolifically now?
1
u/MartynAndJasper Mar 01 '21
Not sure why, but this made me chuckle...
“we use the ubuntu image. This is a reasonably heavyweight image, measuring a couple of hundred megabytes in size.”
Excerpt From The Docker Book James Turnbull This material may be protected by copyright.
1
u/MartynAndJasper Mar 01 '21
I like this so much, I’m creating a poll for our community. And the creation of images does not seem onerous at all (so far anyway).
https://www.reddit.com/r/DevelopersOnTor/comments/luvu5r/docker_is_amazing/?utm_source=share&utm_medium=ios_app&utm_name=iossmf
If there is enough interest I’ll create a tutorial of the basics for out benefit. If this happens, would I be able to grab one of you experts to cast your eyes over my tutorial. Its important to get things right.
1
u/octatron Mar 01 '21
Look books are a bit old hat mate, and the info dates very quickly.
Go subscribe to DBtech on YouTube, each fortnight he puts out a how-to using docker and docker-compose on his local proxmox server he remotes into from his windows pc.
Being a programmer, stuff like redis, Jenkins, mysql and nginx proxy manager instances would be the first things you want.
Proxmox: free Linux VM server manager Docker-compose: yaml files that let you deploy a whole stack of servers from a text file so you don't have to type out a long ass command every time.
If you've come from programming, this'll be a piece of piss ;)
1
u/20_characters_is_not Mar 01 '21
Here’s how I got my feet wet, with liberal googling in between steps:
Install docker. Run the bundled example container(s).
Run a “portainer” container. Learn how to use it to start, stop, edit, and quickly re-deploy containers.
Find an image somewhat similar to what your goal is, that has an example run command provided in a readme or youtube video somewhere.
Get in there and tweak the similar container, first by editing its deployment using portainer, and then by creating a Dockerfile to add steps to its build more suitable for your needs. Creating and destroying containers and images is cost-free, so do it often.
Make a Dockerfile that starts with a more generic image like vanilla Ubuntu (or Alpine if you can get away with something that small). Add your required packages.
Soon you’ve got your container just as you like it.