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 →
On Ubuntu 22.04 you'll get an SSH error of no mutual signature algorithm unless you change keys or modify PubkeyAcceptedKeyTypes.
This could be handy if you have encrypted secrets in your CI pipeline and want to pass a bunch of them into a container.
Work laptops are meant for work but what about internal work notes? Also what if IT has installed specific tools on the device?
It's really fast and only requires a few lines of shell scripting. You won't need to run systemd inside of WSL 2 either.
I like cleaning up unused branches and doing it manually can be tedious. Here's a 1 liner you can turn into an alias.
MailCatcher works with any tech stack and it has a Docker image. It starts an SMTP server to view emails in a browser or any mail client.
No longer worry about alphabetizing or spacing out imports that are from the standard lib, a third party library or your own code.
Some web frameworks will only load a specific environment based config file in that env, which could lead to production errors.
Visiblity on what's happening is important to help debug something. Having these logs present all the time can save a lot of time.
Search your git repos for any string / regex, even across branches. This is handy to recall something from days, weeks or years ago.
If you're not using Docker Desktop and your UID / GID is not 1000 then you'll get permission errors with volumes. Here's how to fix that.
This is handy if you have 2 different users deploying code to the same directory, such as a deploy user and CI user.
Docker deprecated their v1 API in September 2022, now we can get a lot more details about each tag using the v2 API.
I switched to v2 because it's faster and profiles let you easily start specific services in different environments.
You can almost cut your app's Docker Compose recreate containers time in half by avoiding needless recreates on .env changes.
I recently came across a bug when trying to pin Docker Compose v2 using Ansible 2.13.3. Here's the steps I took to determine it was a bug.
You could use this site to test an HTTP client or perhaps the return value of a mocked API response in development.
This could be handy to see how many people committed to a repo or find out who the recent contributers are.
It will add a new line by default which will change your value, consider using printf instead or at least echo with the -n flag.
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.