Docker
- Introduction and Tutorials
- Debugging
- Docker CLI
- Docker Extensions
- Docker Swarm
- Awesome Lists
- Docker VS Kubernetes
- Docker Patterns and Antipatterns
- Docker Security
- How To Build a Smaller Docker Image
- Reducing Build Time
- Modify containers without rebuilding
- Docker Tools
- Docker and WSL2
- Docker and Docker Swarm Cheat sheets
- Docker Compose
- Moving Linux Services Into Containers
- Windows Containers
- Portainer
- DockStation
- Linux Container Base Images
- Blogs
- Cloud Native Buildpacks
- Alternatives to Docker. Available alternatives to Docker for OCI compliant container image building
- Videos and Podcasts
- Tweets
Introduction and Tutorials
- Wikipedia.org: Docker
- Dzone refcard: Getting Started with Docker
- Dzone refcard: Java Containerization ๐
- americanexpress.io: Do Not Run Dockerized Applications as Root ๐
- medium.com: Removing Docker Images, Containers, and Volumes with Ease
- medium.freecodecamp.com: A Beginner-Friendly Introduction to Containers, VMs and Docker
- Google Play: Learning Solution - Learn Docker ๐
- Play with docker ๐ A simple, interactive and fun playground to learn Docker
- blog.docker.com: Intro Guide to Dockerfile Best Practices ๐
- medium: Strategies of docker images optimization
- Dzone: Docker explained, an introductory guide to docker
- Dzone: everything you need to know about docker
- Dzone: a start to finish guide to docker with java
- docker.com: Intro Guide to Dockerfile Best Practices
- GitHub build-push-action Build+push official Docker GitHub action
- docker.com: Speed Up Your Development Flow With These Dockerfile Best Practices
- itnext.io: Getting Started with Docker: Facts You Should Know ๐
- jfrog.com: A Beginnerโs Guide to Understanding and Building Docker Images ๐
- Broken by default: why you should avoid most Dockerfile example ๐
- geekflare.com: docker tutorials
- medium: What is Docker, Why should you use it in simple words
- docker.com: Top Questions for Getting Started with Docker ๐
- medium: How to Start Working With Docker Containers
- dzone: Mitigating DevOps Repository Risks Docker is in the news for two reasons: Image retention limits and download throttling. Let’s discuss both and see the better alternatives.
- Top 18 Docker commands for Automation Tester/Devops/SDET/Test Lead? ๐
- A Gentle Introduction to Using a Docker Container as a Dev Environment ๐
- docs.docker.com: Deploying Docker containers on ECS
- medium: Understanding Docker Volumes, Mounts and Layers and How to Manage Data in Containers
- A Gentle Introduction to Using a Docker Container as a Dev Environment
- martinheinz.dev: It’s Time to Forget About Docker ๐
- docker.com: Docker Hub Experimental CLI tool
- docker.com: Year in Review: The Most Viewed Docker Blog Posts of 2020 Part 1 ๐
- docker.com: Year in Review: The Most Viewed Docker Blog Posts of 2020 Part 2 ๐
- adictosaltrabajo.com: Cรณmo crear y desplegar microservicios con Spring Boot, Spring Cloud Netflix y Docker
- cloudsavvyit.com: How to Use Cron With Your Docker Containers
- infoq.com: Docker Hub and JFrog Partnership Removes Image Pull Limits for Artifactory Users
- technology.doximity.com: Buildpacks vs Dockerfiles ๐ Exploring the tradeoffs of building container images at scale
- docker.com: Containerized Python Development โ Part 1
- sysdig.com: Top 20 Dockerfile best practices ๐
- pythonspeed.com: The worst so-called โbest practiceโ for Docker
- developers.redhat.com: Making environment variables accessible in front-end containers
- towardsdatascience.com: Have you heard about our lord and savior Docker? Introduction to working with Docker and creating your own development environment
- medium: Dockerizing a REST API in Python Less Than 9 MB and Based on scratch Image
- datamechanics.co: Optimized Apache Spark Docker Images
- theskillpedia.com: Managing docker images - openshift tutorial
- iximiuz.com: Container Networking Is Simple!
- r-bloggers.com: Dockerizing Shiny Applications
- pythonspeed.com: Docker can slow down your code and distort your benchmarks
- turbofuture.com: A Beginners Guide to Containers and Docker
- releasehub.com: Cutting Build Time In Half with Dockerโs Buildx Kubernetes Driver
- medium.com/nttlabs: Kubernetes driver for Docker BuildX In this article, you will learn how Docker BuildX supports building images using BuildKit pods on a Kubernetes cluster. Docker BuildX, the extended version of docker build CLI, now supports distributed image building using Kubernetes!
- linuxadictos.com: Docker presenta nuevas capacidades para desarrolladores
- grafana.com: Docker Integration for Grafana Cloud Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly.
- dev.to: Docker CMD vs ENTRYPOINT: explaining the difference
- blog.gougousis.net: File Permissions: the painful side of Docker ๐
- katacoda.com: Learn Docker & Containers using Interactive Browser-Based Scenarios ๐
- medium: Push Docker Image To Docker Hub Create Docker hub account and push Docker image.
- blog.thundra.io: Why Should You Run All Your Tests in Docker? ๐
- returngis.net: Crea hosts de Docker con Docker Machine en Microsoft Azure
- dev.to: Docker 101!
- pawelurbanek.com: asdf and Docker for Managing Local Development Dependencies
- tecmint.com: How to Install Docker on Rocky Linux and AlmaLinux
- blog.adoptium.net: Using Jlink in Dockerfiles instead of a JRE
- cloudsavvyit.com: How to SSH into a Docker container
- cloudsavvyit.com: How to use docker cp to copy files between host and containers
- baeldung.com: Deploying a Java War in a Docker Container
- returngis.net: Explorar grรกficamente el contenido de un volumen de Docker
- opensource.com: What is a container image? A container image contains a packaged application, along with its dependencies, and information on what processes it runs when launched.
- zdnet.com: Docker changes its subscription plans, usage rules, and product line
- servethehome.com: Docker Abruptly Starts Charging Many Users for Docker Desktop
- matt-rickard.com: An Overview of Docker Desktop Alternatives
- blog.aquasec.com: How Do Containers Contain? Container Isolation Techniques
- infoworld.com: How Docker broke in half The game changing container company is a shell of its former self. What happened to one of the hottest enterprise technology businesses of the cloud era?
- cloudsavvyit.com: How to Pass Environment Variables to Docker Containers
- dev.to: One does not “just containerize” an app
- The Docker ecosystem is filled with leaky abstractions. The utopian vision of Docker containers is a world where a developer can grab a base container for a language, copy in their code with a minimal Dockerfile, and be ready to develop and deploy instantly.
- Unfortunately, this landscape is filled with per-language gotchas that make this world a far cry from reality. Here are some of the wonky things I’ve run into when working with containers.
- cloudsavvyit.com: How To Clean Up and Delete Docker Images
- itnext.io: Software development in containers โ a cookbook ๐๐๐ A guide to developing containerized software
- dev.to: How to create a production Docker image
- dev.to: How to run docker on Windows without Docker Desktop
- dev.to: Beginner’s guide to Docker and Docker CLI commands
- testdriven.io: Docker Best Practices for Python Developers
- freecodecamp.org: Learn How to Deploy 12 Apps to AWS, Azure, & Google Cloud
- cloudsavvyit.com: How to Assign a Static IP to a Docker Container
- cloudsavvyit.com: How to Inspect a Docker Imageโs Content Without Starting a Container
- freecodecamp.org: Why You Should Start Using Docker Right Now
- infoworld.com: Docker really did change the world Developers quickly understood the value of containers for building cloud-native applications, and that the Docker command-line tool was better than all of the bells and whistles they got with PaaS.
- dev.to: Top 8 Docker Best Practices for using Docker in Production ๐
- cloudsavvyit.com: How (and Why) to Run Docker Inside Docker
- cloudsavvyit.com: Whatโs the Difference Between Exposing and Publishing a Docker Port?
- clavinjune.dev: Working With Remote Docker Using Docker Context This is a cheatsheet for working with docker context to connect remote docker locally. Might help you to work with remote docker without manually SSH to the remote server.
- cloudsavvyit.com: How to Add a Volume to an Existing Docker Container
- cloudsavvyit.com: How to Manage Docker Engine Plugins
- iximiuz.com: Learning Containers From The Bottom Up | Ivan Velichko ๐๐๐ Efficient Learning Path to Grasp Containers Fundamentals
- thenewstack.io: The Time to Decide on Docker Desktop Has Arrived
- codeproject.com: How to Create an Image in Docker using Python
- dev.to: Top 5 Docker Best Practices
- thenewstack.io: How to Share Data Between Docker Containers
- iximiuz.com: Containers 101: attach vs. exec - what’s the difference?
- acloudguru.com: Docker COPY vs ADD: Whatโs the difference?
- thenewstack.io: How to Run Docker in Rootless Mode
- mjovanc.com: Get started with Docker and Docker Compose
- dev.to: Docker: Explained to a 5 year old. ๐ถ๐ป
- nishnit007.medium.com: A Journey from Dockerfile to Application Deployment on Kubernetes For Beginners
- stevelasker.blog: Docker Tagging: Best practices for tagging and versioning docker images
- freecodecamp.org: Docker Cache โ How to Do a Clean Image Rebuild and Clear Docker’s Cache
- dev.to: Docker 101: Introduction to Docker
- blog.devgenius.io: K8s โ Advanced Container Knowledge
- medium.com/@joelbelton: Optimising Docker Performance โ The Key 4 Techniques You Need
- kubesimplify.com: The secret gems behind building container images, Enter: BuildKit & Docker Buildx
- medium.com/geekculture: Docker โ Limit Container CPU Usage ๐
- devtron.ai: Understand CMD and ENTRYPOINT Differences in Docker
- fatehmuhammad.medium.com: Introduction to Docker | part 1
- cloudnativeislamabad.hashnode.dev: Introduction to Docker | part 1 ๐
- faun.pub: Dockerfile Best Practices for Developers | Pavan Belagatti
- docker-curriculum.com: A Docker Tutorial for Beginners ๐
- hostinger.in: What Is Docker and How Does It Work? โ Docker Explained
- blog.devgenius.io: Container โ Namespace Introduction Introduction to common container namespaces
- viblo.asia: How to prevent out-of-disk space when using Docker?
- iximiuz.com: What Actually Happens When You Publish a Container Port ๐ “Port publishing” seems to be a term coined by Docker. But “port forwarding” aka “port mapping - as a form of socket redirection - was a well-known trick well before the invention of containers. How are the two different?
- iximiuz.com: How To Publish a Port of a Running Container ๐
- medium.com/@BeNitinAgarwal: Lifecycle of Docker Container
- docker.com: Docker Compose: Whatโs New, Whatโs Changing, Whatโs Next
- medium.com/@i180826: Using Docker to build React App
- dev.to: Simplify Your Dockerfile wiyth Rust programming language| Kamesh Sampath
- itprotoday.com: Is Docker Still Worth Learning for IT Operations Teams? Probably Not While Docker isn’t dead, Docker tooling may be. Here’s why learning Docker tools isn’t as important as it once was, especially for ITOps teams.
Debugging
- betterprogramming.pub: 5 Simple Tips For Debugging Docker Containers ๐ Smoke out annoying container problems with minimal insanity
- iximiuz.com: Docker: How To Debug Distroless And Slim Containers ๐ A handy way to troubleshoot containers lacking a shell and/or debugging tools (e.g, scratch, slim, or distroless)
Docker CLI
- docs.docker.com: docker buildx imagetools Commands to work on images in registry
-
Who is still copying images between registries with:
- docker cli:
- docker pull
- docker tag
- docker push
- docker pull
- Use:
- crane cp
- crane cp
-
Or even:
- cosign cp
- cosign cp
-
It’s faster, and supports multi-arch (and cosign copies signatures/sboms/attestations)
- docker cli:
Docker Extensions
Docker Swarm
Awesome Lists
Docker VS Kubernetes
- blog.testproject.io: A Comparison of Kubernetes and Docker
- containerjournal.com: Whatโs the Difference Between Docker and Kubernetes?
- peoplactive.com: Kubernetes Vs Docker โ Which to Adopt?
Docker Patterns and Antipatterns
- codefresh.io: Docker anti-patterns ๐
- medium: Docker anti-patterns | Codefresh
- Creating Docker files that are not transparent.
- Creating Dockerfiles that have side effects.
- Confusing images used for deployment with those used for development.
- Building different images per environment.
Docker Security
- thehackernews.com: Docker Images Containing Cryptojacking Malware Distributed via Docker Hub
- acloudguru.com: 10 Docker Security Best Practices to Cut Container Chaos
- brianchristner.io: How to use Docker Security Scan Locally Docker included a new command called
docker scan
that scans local images against the Snyk security engine, providing you with security visibility into your local Dockerfiles and images. - snyk.io: 10 Docker Security Best Practices ๐
- cheatsheetseries.owasp.org: Docker Security Cheat Sheet ๐๐
- augmentedmind.de: Docker optimization guide: the 12 best tips to optimize Docker image security
- infoq.com: Is Docker Secure Enough?
- clickittech.com: The Ultimate Docker Security Best Practices for Your Node.js Application Top 12 Docker Security Best Practices
- infosecwriteups.com: Attacking and securing Docker containers
- securitylabs.datadoghq.com: Container security fundamentals: Exploring containers as processes
How To Build a Smaller Docker Image
- developers.redhat.com: Keep it small: a closer look at Docker image sizing
- medium: How to build a smaller Docker image When youโre building a Docker image itโs important to keep the size under control. Having small images means ensuring faster deployment and transfers.
- itsopensource.com: How to Reduce Node Docker Image Size by 10X
- blog.bitsrc.io: Best Practices for Writing a Dockerfile Optimize your Docker Image by following these best practices from day one.
- sequoia.makes.software: Reducing Docker Image Size (Particularly for Kubernetes Environments) ๐
- itnext.io: Building Docker Images The Proper Way ๐ Letโs optimize Docker builds to create much smaller and more secure Docker images in a fraction of the usual build timeโฆ
- returngis.net: Reduce el tamaรฑo de tus imรกgenes con Dockerfiles multi-stage
- slim.ai Build secure containers, faster. Secure your software supply chain.
- learnk8s.io: 3 simple tricks for smaller Docker images ๐ When it comes to building Docker containers, you should always strive for smaller images. Images that share layers and are smaller in size are quicker to transfer and deploy.
- contains.dev: Optimizing Docker image size and why it matters
- jpetazzo.github.io: Anti-Patterns When Building Container Images
- developers.redhat.com: Reduce the size of container images with DockerSlim
- docker.com: Reduce Your Image Size with the Dive-In Docker Extension
Reducing Build Time
- nrmitchi.com: One Simple Trick for Building Images Faster ๐
BUILDKIT_INLINE_CACHE=1 build-arg
is a neat flag that you could add to your docker build to reduce the build time upto 89%
- pythonspeed.com: Docker BuildKit: faster builds, new features, and now itโs stable Building Docker images can be slow, and Dockerโs build system is also missing some critical security features, in particular the ability to use build secrets without leaking them. So over the past few years the Docker developers have been working on a new backend for building images, BuildKit.
- pauldally.medium.com: Structuring Dockerfiles For Productivity
Modify containers without rebuilding
Docker Tools
- Top 50 Docker Tools
- docker-ecs-plugin: Docker Releases Plugin for Simplified Deployments into AWS ECS and Fargate
- dive ๐ A tool for exploring a docker image, layer contents, and discovering ways to shrink the size of your Docker/OCI image. Use the dive tool to analyze a Docker image of your application. What did I learn? While Jib creates 3 layers for Spring Boot app (dependencies, resources and classes), Paketo Buildpacks places resources and classes in the same layer.
- ctop ๐ Top-like interface for container metrics
- phpdocker Production Grade, Rootless, Pre-configured, Extendable, and Multistage PHP Docker Image for Cloud Native Deployments (and Kubernetes)
- dev.to: Use Kool to Dockerize Your Local Development Environment the Right Way
- sematext: Monitor Docker Metrics & Logs ๐ Full Docker observability: Docker metrics, logs, and events. Yes, Kubernetes & Swarm, too!
-
stepchowfun/docuum: Docuum: LRU eviction of Docker images ๐ Docuum performs least recently used (LRU) eviction of Docker images.
- Docker’s built-in docker image prune –all –filter until=โฆ command serves a similar purpose. However, the built-in solution isn’t ideal since it uses the image creation time, rather than the last usage time, to determine which images to remove. That means it can delete frequently used images, which may be expensive to rebuild.
- Docuum is ideal for use cases such as continuous integration (CI) workers, developer workstations, or any other environment in which Docker images accumulate on disk over time. Docuum works well with tools like Toast and Docker Compose.
- Docuum is used by Airbnb on its fleet of 1.5k+ CI workers.
- cybersecsi/RAUDI A repo to automatically generate and keep updated a series of Docker images through GitHub Actions.
- grosser/preoomkiller Softly kills your process with SIGTERM before it runs out of memory. Made for processes that run inside docker.
- ory/dockertest Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. Use Docker to run your Golang integration tests against third party services on Microsoft Windows, Mac OSX and Linux!
- hadolint/hadolint: Haskell Dockerfile Linter Dockerfile linter, validate inline bash, written in Haskell
- ttl.sh: Anonymous & ephemeral Docker image registry ๐ Free to use. No need to sign-up. Open source.
- buildg: Interactive debugger for Dockerfile ๐ Interactive debugger for Dockerfile, with support for IDEs (VS Code, Emacs, Neovim, etc.)
- github.com/google/go-containerregistry ๐ Go library and CLIs for working with container registries
- jesseduffield/lazydocker The lazier way to manage everything docker
Docker and WSL2
- Creating the best Linux Development experience on Windows & WSL 2
- andrewlock.net: Installing Docker Desktop for Windows and WSL 2
- medium.com/@adeelsubhan25: How to setup and build Docker Images on Windows
Docker and Docker Swarm Cheat sheets
Docker Compose
- freecodecamp.org: a beginners guide to docker - how to create a client server side with docker compose
- docker.com: Announcing the Compose Specification ๐
- infoworld.com: Docker’s Compose specification is now an open standard Dockerโs system for creating applications from multiple containers is now available on GitHub for all to contribute to.
- theregister.co.uk: Compose yourselves โ Docker has published multi-container app spec, needs contributors to help maintain and develop it Now focused on developers, firm wants its tools to be more universally useful. Keep it light(weight), though.
- Awesome Compose
- Visual docker-compose.yml file generator ๐
- medium: How can we easily and visually explain the Docker Compose ๐
- docker.com: Docker Compose for Amazon ECS Now Available
- geshan.com.np: Postgres with Docker and Docker compose a step-by-step guide for beginners
- codesolid.com: How To Use Docker and Docker Compose With Python
- releasehub.com: 6 Docker Compose Best Practices for Dev and Prod
Moving Linux Services Into Containers
Windows Containers
Portainer
- Portainer ๐ Making Docker management easy
- Portainer Community Edition
- thenewstack.io: Deploy a Persistent Kubernetes Application with Portainer Here’s how to make sure all the contents of your container stay intact even after you delete the container itself.
DockStation
Linux Container Base Images
- crunchtools.com: A Comparison of Linux Container Images
- kubedex.com: Base images comparison
- developers.redhat.com: Red Hat Universal Base Images for Docker users
- dev.to: The best Docker base image for your Python application
- Red Hat Universal Base Images - hub.docker.com/u/redhat: UBI 8 standard, minimal, micro, and init from DockerHub ๐
- developers.redhat.com: Red Hat Universal Base Image and Docker Hub: Why should developers care?
- redhat.com: Red Hat Brings Red Hat Universal Base Image to Docker Hub Verified content from the worldโs leading enterprise Linux platform aimed at helping developers and operators build more secure and scalable containerized solutions from the industryโs leading container registry
Blogs
Cloud Native Buildpacks
- buildpacks.io: Cloud Native Buildpacks ๐ transform your application source code into images that can run on any cloud.
- altoros.com: Streamlining the Creation of Docker Images with Cloud Native Buildpacks The new Cloud Native Buildpacks framework changes the obnoxious development chore of Dockerfile writing into a simple, automated operations pipeline. When deploying apps to Kubernetes or other container-as-a-service platforms, the proliferation of nonstandard, unauditable containers built manually via Dockerfiles is a real problem. A few products have emerged to solve this problem, among them Cloud Native Buildpacks (ะกNB). In this blog post, we explore the capabilities of these buildpacks and explain how to use them in build pipelines to deliver standardized, auditable images as artifacts suitable for deployment.
- thenewstack.io: Container Images the Easy Way with Cloud Native Buildpacks
- dev.to/pmbanugo: Goodbye Dockerfiles: Build Secure & Optimised Node.js Container Images with Cloud Native Buildpacks
Alternatives to Docker. Available alternatives to Docker for OCI compliant container image building
- blog.alexellis.io: Building containers without Docker ๐
- medium: nerdctl: Docker-compatible CLI for contaiNERD
- jfrog.com: THE BASICS: 7 Alternatives to Docker: All-in-One Solutions and Standalone Container Tools ๐
- nerdctl ๐ Docker-compatible CLI for containerd
- img
- jib
- kaniko
- buildah
- buildkit
- podman
- blog.logrocket.com: Top Docker alternatives for 2022
- itnext.io: Replace Docker Desktop with lima - lima-vm/lima
- dzone: Alternatives to Docker Desktop Have $5 to spend monthly? Do you want to avoid the fee? There are a couple of alternatives that can replace Docker Desktop with a free solution.
Videos and Podcasts
Click to expand!
Tweets
Click to expand!
Environment variables in Docker:
— Francesco Ciulla (@FrancescoCiull4) May 15, 2021
Environment variables are dynamic-named values that affect how our app will behave when running.
We can define them with Docker:
- at runtime
- in the Dockerfile
- in the Compose file (2 ways)
Let's see in detail in 1 minute:
1/5
Introduction to Docker๐ณ@Docker is an open-source platform for deploying and managing containerized applications. It allows developers to easily package their applications into containers that can be deployed on every machine with a valid Docker installation.
— Gabriel Tanner (@GabrielTanner14) December 13, 2021
Thread ๐งต๐
How to grasp Containers and Docker (Mega Thread)
— Ivan Velichko (@iximiuz) August 7, 2021
When I started using containers back in 2015, I thought they were tiny virtual machines with a subsecond startup time.
It was easy to follow tutorials from the Internet on how to put your Python or Node.js app into a container...
Okay @awscloud Lambda folks: when should I use Docker containers as the packaging format for functions vs. using native runtimes? Looking for general guidance here.
— Corey Quinn (@QuinnyPig) March 28, 2022
Mostly bc of the package size limit.
— Maciej Radzikowski (@radzikowski_m) March 28, 2022
Standard code zip: max 250 MB
Docker image: max 10 GB
If you do anything in Python with ML libs, you will need Docker...
Why use native runtimes otherwise? Cold start.
Docker: 750-1000 ms
Node/Python: 250-300 ms
Docker Compose + DockerSlim = โค๏ธ@DockerSlim can make your images much smaller (hence, faster and securer), but it requires launching containers for runtime analysis.
— Ivan Velichko (@iximiuz) July 13, 2022
Real apps, though, rarely run in isolation... Docker knew that and built Compose.
Now, behold the synergy! ๐ฝ pic.twitter.com/n6NlJokC95
Debunking Container Myths ๐งต
— Ivan Velichko (@iximiuz) August 28, 2022
A (never-ending) series of articles that I started writing a couple of years ago to fix my own misconceptions about containers ๐ฝ pic.twitter.com/bD7Iw48ere
What Is a Distroless Container Image? ๐งต
— Ivan Velichko (@iximiuz) September 5, 2022
Go (programming language) is famous for its statically linked binaries. You can take a Go executable, drop it into a "FROM scratch" container, and call it a day.
But there might be a problem (keep reading) ๐ pic.twitter.com/kskCI3rqCC
Who is still copying images between registries with:
— Matt Moore โ๐ (@mattomata) October 13, 2022
docker pull <src>
docker tag <src> <dst>
docker push <dst>
Use:
crane cp <src> <dst>
Or even:
cosign cp <src> <dst>
It's faster, and supports multi-arch (and cosign copies signatures/sboms/attestations)
Want to master Docker and become a container expert
— Ivan Velichko (@iximiuz) December 9, 2022
...but don't know how to even start? ๐ฝ
Here is the learning order that helped me:
1. Containers: how Linux does them
2. Images: why they are needed
3. Managers: many containers, one host
4. Orchestrators: many hosts, one app pic.twitter.com/HaXaGnSMkU