dockerfiles VS containers

Compare dockerfiles vs containers and see what are their differences.

containers

Repo containing the dockerfiles and scripts to produce the official eclipse-temurin containers. (by adoptium)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
dockerfiles containers
14 9
345 191
2.6% 6.3%
7.3 8.5
6 days ago 3 days ago
Shell Dockerfile
GNU General Public License v3.0 only Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

dockerfiles

Posts with mentions or reviews of dockerfiles. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-01.

containers

Posts with mentions or reviews of containers. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-19.
  • Need a VM for Java 11 and a specific Program - which distro to choose?
    1 project | /r/selfhosted | 9 Dec 2023
    eclipse-temurin:11 https://hub.docker.com/_/eclipse-temurin
  • CentOS 7 vs CentOS Stream vs Rocky vs Alma vs Debian vs Ubuntu for server
    1 project | /r/sysadmin | 28 May 2023
    Then you build the container. That will download that container that already has linux with java on it, like this one: https://hub.docker.com/_/eclipse-temurin
  • Primeiros passos no desenvolvimento Java em 2023: um guia particular
    13 projects | dev.to | 19 Jan 2023
  • From Java to Golang and back
    1 project | /r/java | 5 Oct 2022
    You can shrink the docker image greatly by starting with an Alpine based one like this https://hub.docker.com/_/eclipse-temurin
  • MinIO passes 1B cumulative Docker Pulls
    5 projects | news.ycombinator.com | 21 Sep 2022
    > Just imagine the vast number of poorly cached CI jobs pulling gigabytes from Docker hub on every commit, coupled with naive aproaches to CI/CD when doing microservices, prod/dev/test deployments, etc.

    I hit the rate limits that others talk of in the comments, which motivated me to use Nexus for both proxying and storing my own container images.

    So far, it's been pretty good, I actually wrote about the process on my blog, "Moving from GitLab Registry to Sonatype Nexus": https://blog.kronis.dev/tutorials/moving-from-gitlab-registr...

    Another thing that I tried, however, was to only rely upon Docker Hub for the base images that I want (Ubuntu in my case) and then build everything I need on top of that, doing things like installing Java/Node/Python/Ruby/... manually, adding utilities I want across all of the images etc.

    Once again, I wrote about it on my blog, "Using Ubuntu as the base for all of my containers": https://blog.kronis.dev/articles/using-ubuntu-as-the-base-fo...

    That approach is absolutely more work, but also is something that's underexplored and works really nicely for me. Now I mostly rely on the OS package manager repositories (or mirrors of those), put less load on Docker Hub, don't risk running into its rate limits and also have common base layers across most of the images that I build, which in practice means less data actually needing to be downloaded to any of the servers where I want to utilize my images.

    Of course, the downside is that getting something like PHP running was an absolute pain (tried with Apache, didn't work for some reason, then moved over to Nginx), and I technically miss out on some of the more complex space optimizations because if you look at the Dockerfiles for some of the more popular images, like OpenJDK, you'll occasionally see some interesting approaches, like getting the software package as a bunch of files and "installing" them directly, as opposed to using something like apt/yum: https://github.com/adoptium/containers/blob/08dd7d416cee0fe0...

    Then again, personally I'd much prefer to rely on packages that I can get from something like apt directly, even if some of those versions can be a bit older (or add the project's official apt repositories as needed).

  • Question?
    4 projects | /r/docker | 6 Sep 2022
    The FROM looks incorrect. When i watch the Youtube video it mentions adoptopenjdk which is deprecated (https://hub.docker.com/\_/adoptopenjdk). You now should use https://hub.docker.com/_/eclipse-temurin/.
  • Uberjar hosting services?
    1 project | /r/java | 1 Sep 2022
  • Java eclipse temurin:18.0.1_10-jre-alpine is out ! Now what ?
    2 projects | dev.to | 4 May 2022
    Eclipse Temurin is maintaining a rich collection of Java images.
  • Anyone using the Alpine Musl JDK builds in production?
    1 project | /r/java | 14 Mar 2022
    Intially only the 17 was the musl-native variant, later added 11 and very recently (6 days ago) for 8 as well: https://github.com/adoptium/containers/issues/72

What are some alternatives?

When comparing dockerfiles and containers you can also consider the following projects:

flutter-client - Invoice Ninja: Desktop/mobile admin portal built with Flutter

docker-images - Official source of container configurations, images, and examples for Oracle products and projects

docker-windscribe-socks-server - Containerizes a SOCKS5 proxy server with traffic tunneled through Windscribe's VPN service

zsh-in-docker - Install Zsh, Oh-My-Zsh and plugins inside a Docker container with one line!

geodesic - 🚀 Geodesic is a DevOps Linux Toolbox in Docker

grype - A vulnerability scanner for container images and filesystems

Invoice Ninja - Invoices, Expenses and Tasks built with Laravel, Flutter and React

Dragonfly - This repository has be archived and moved to the new repository https://github.com/dragonflyoss/Dragonfly2.

dockerfile-run - Execute dockerfiles as scripts (incl. via shebang)

jetson-containers - Machine Learning Containers for NVIDIA Jetson and JetPack-L4T

Akaunting - Online Accounting Software

minecraft-docker