Dive into Docker takes you from "What is Docker?" to confidently applying Docker to your own projects. It's packed with best practices and examples. Start Learning Docker →
You can use this method with any package manager that has the concept of a lock file to help with dependency management.
In this tip you'll learn how to look under the hood of what Docker Compose is doing whenever you run any of its commands.
Here's a few patterns and little things I've picked up after using Docker since 2014. These help maintain Docker driven apps.
You can expose ports by using EXPOSE in your Dockerfile, --expose on the command line but there's also publishing ports too.
When making certain types of edits on a page, having an instant feedback loop directly in your browser is really beneficial.
This isn't really a Docker tip because you can do the same thing on any Linux based OS but it's useful nonetheless.
I would still use 80 characters per line even if I had a 4k monitor. This is especially true for web development.
You can build an image from a Dockerfile, and you can pull an image from a Docker Registry, but what happens when you supply both?
I'm a big fan of setting up my development environment to be the same as production. That means running gunicorn in dev mode.
On paper this sounds easy. Just mount in your SSH directory and you're done, but it's not that simple with Windows based Docker hosts.
Imagine if you could run Visual Studio Code, Sublime Text or any other application on your smartphone or another device?
You may want to enable read-only on your containers to enhance its security, or perhaps you have other app specific needs.
Learn how to figure out exactly where your disk space is going with WinDirStat because the built in Windows 10 tools do not do their job.
You may get this error when trying to access a web server running in a container. Empty reply from server is another common error.
Let me tell you a story on how a subdomain of mine managed to serve 390,000+ PDF books without any of my servers being compromised.
A Docker repository is where you can store 1 or more versions of a specific Docker image. An image can have 1 or more versions (tags).
As developers, life is good when it comes to gaining initial experience compared to other trade skills. Here's how to get started.
Container and image IDs are 64 character SHA-256 IDs. Most Docker commands truncate them to 12 characters, but you only need 4 chars.
As software developers, and especially freelance developers, it's easy to get stuck in unproductive loops but you can break that loop.
Who would have thought, after 22 years of using a keyboard I learned a new trick by multi-tapping the Home key.
Like you, I'm super protective of my inbox, so don't worry about getting spammed. You can expect a few emails per month (at most), and you can 1-click unsubscribe at any time. See what else you'll get too.