Mike Kasberg

Husband. Father. Software engineer. Ubuntu Linux user.

Image for So You Want to Learn Docker

So You Want to Learn Docker

11 Feb 2017

Everyone’s Learning Docker

Docker is the cool new technology. Last year, it had 264% YoY growth in Stack Overflow questions.1 And with good reason. Docker solves a lot of software development and systems engineering challenges. It provides a great solution for development and testing environments, enabling developers to test their code in an environment very similar to production (assuming production runs on containers). Even if production doesn’t run on containers, many developers still prefer Docker over virtual machines for development and testing because of the advantages it provides for speed and consistent state.

Docker Logo

With the rapid growth Docker is experiencing, it seems like everyone is trying to learn how to use the technology. In fact, I’ve invested many over the last year in teaching myself to use Docker. When I was just starting out, I spent a lot of time searching for the quickest, easiest way to learn.

How we Learn

When I learned Git many years earlier, I used a really great website called Git Immersion. Essentially, this walks you through pretty much everything you might want to do with a Git repository. It assumes nothing, and starts with the most basic principals. But by the time you reach lab 15 or 20, you start to feel like you really know what you’re doing. You start to feel comfortable using Git because you’ve been actively using it as part of every lesson.

And there’s actually reason behind this learning methodology. Educators know that people learn more by doing things than they do by reading about them. If you read a book about a new technology, even if it feels like you learn a lot from the book, you won’t feel at-home when you start to use it for the first time. You won’t feel comfortable with it. Git Immersion is based on the premise, “to know a thing is to do it.” When you work through Git Immersion, you don’t just read about Git. You use it. You build something with it. And this is critical for the effectiveness with which it helps you learn.

Container Immersion

When I began teaching myself Docker, I was looking for something that would teach me Docker in the same way Git Immersion taught me Git. A walk-through of sorts, that would teach me how to build things with Docker from the ground up. While I found a few good books and reference materials, I never found exactly what I was looking for. (But I do recommend The Docker Book if you’re serious about learning Docker.)

Now that I know Docker pretty well, I’ve decided to create the type of lessons that I wish I had when I was learning. Container Immersion is a “guided tour” for Docker, written in the spirit of Git Immersion. It is hosted on Github via Github Pages, so it is open source and anybody can use or contribute to it. I don’t know if it will ever turn into a very popular project, but I enjoyed writing it and I hope someone finds it useful.

Image: https://www.flickr.com/photos/lord_yo/4554730854/

About the Author

Mike Kasberg

👋 Hi, I'm Mike! I'm a husband, I'm a father, and I'm a senior software engineer at Strava. I use Ubuntu Linux daily at work and at home. And I enjoy writing about Linux, open source, programming, 3D printing, tech, and other random topics. I'd love to have you follow me on X or LinkedIn to show your support and see when I write new content!

Share!

If you enjoyed this blog post, I'd love it if you could share it with your network!

I run this blog in my spare time. There's no need to pay to access any of the content on this site, but if you find my content useful and would like to show your support, buying me a coffee is a small gesture to let me know what you like and encourage me to write more great content!

You can also support me by visiting LinuxLaptopPrices.com, a website I run as a side project.