hcl VS nerdctl

Compare hcl vs nerdctl and see what are their differences.

hcl

HCL is the HashiCorp configuration language. (by hashicorp)

nerdctl

contaiNERD CTL - Docker-compatible CLI for containerd, with support for Compose, Rootless, eStargz, OCIcrypt, IPFS, ... (by containerd)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
hcl nerdctl
40 33
5,060 7,384
1.3% 2.9%
8.2 9.6
9 days ago 2 days ago
Go Go
Mozilla Public License 2.0 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.

hcl

Posts with mentions or reviews of hcl. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-23.
  • HCL: Toolkit for Structured Configuration Languages
    8 projects | news.ycombinator.com | 23 Apr 2024
  • 7 Programming Languages Every Cloud Engineer Should Know in 2024!
    4 projects | dev.to | 5 Mar 2024
    Terraform HCL (HashiCorp Configuration Language) is an essential language for cloud engineers in 2024, particularly for those involved in infrastructure as code (IaC) practices. HCL is the configuration language used by Terraform, a widely adopted tool that enables engineers to define, provision, and manage cloud infrastructure using a declarative configuration approach. Learning Terraform HCL allows cloud engineers to automate the deployment and lifecycle management of cloud resources across various service providers, ensuring consistency, repeatability, and scalability of cloud environments.
  • Pkl, a Programming Language for Configuration
    12 projects | news.ycombinator.com | 2 Feb 2024
    Reminds me of [HCL](https://github.com/hashicorp/hcl), but without all the providers to deploy the config?
  • 10 Ways for Kubernetes Declarative Configuration Management
    23 projects | dev.to | 1 Jan 2024
    HCL: A Go implementation structured configuration language. The native syntax of HCL is inspired by libucl and nginx configurations. It is used to create a structured configuration language that is friendly to humans and machines, mainly for DevOps tools, server configurations, and resource configurations as a Terraform language.
  • Show HN: Togomak โ€“ declarative pipeline orchestrator based on HCL and Terraform
    12 projects | news.ycombinator.com | 24 Oct 2023
    HCL has a JSON representation [1], internally, objects behave that way. so it should be possible to write a Jsonnet wrapper around it. Terraform can currently parse json pipelines too.

    [1]: https://github.com/hashicorp/hcl/blob/main/json/spec.md

  • Quadlets might make me finally stop using Docker-compose โ€“ Major Hayden
    7 projects | news.ycombinator.com | 26 Sep 2023
    >https://noyaml.com/

    I'm not sure this is the criticism you think it is. Wow, so you basically have to add quotes to get strings in some ambiguous situations?

    Yeah sure you could probably improve YAML by getting rid of these weird pitfalls, but that is a minor improvement. The alternative isn't something like TOML, because YAML is optimized for hierarchical configuration. It's every vendor implementing a different syntax such as Hashicorp with their HCL [0].

    [0] https://github.com/hashicorp/hcl

  • Avoiding DevOps tool hell
    9 projects | dev.to | 24 Jul 2023
    The Hashicorp corporation has made a huge impact in providing valuable tools and platforms in the cloud ecosystem. The advantage of using the tools they provide, such as Terraform, Vault, and Packer, is that they all have the same language, Hashicorp Configuration Language (HCL). This means you can easily pick up any of these tools by learning HCL, which is similar to JSON. This approach can be useful when choosing tools to learn or use for a project.
  • How would one programmatically formatting Terraform HCL
    5 projects | /r/Terraform | 18 Jun 2023
    Format is HCL language feature: https://github.com/hashicorp/hcl/blob/main/hclwrite/public.go
  • Announcing binconf - v0.1.5
    2 projects | /r/rust | 24 May 2023
    Hi, from what I read from HCL Github "HCL is a syntax and API specifically designed for building structured configuration formats.".
  • Why SQL is right for Infrastructure Management
    6 projects | dev.to | 6 Apr 2023
    When the desired state is relatively simple to define and the mechanism to reach that state is not that important, writing up a declaration of what is needed and letting something/someone else deal with it is the most logical abstraction. This would be like drafting up the architectural draft for your new restaurant and paying a contracting company to actually build it, or writing HTML and letting a web browser render it, or writing a Terraform HCL file and letting the Terraform CLI tool apply it. This is called declarative programming in the software world, and has many advantages (and a few disadvantages!) for cloud infrastructure management.

nerdctl

Posts with mentions or reviews of nerdctl. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-16.
  • Colima k8s nix setup
    4 projects | dev.to | 16 Apr 2024
    What about the docker-cli? colima also ships with a docker-compatible cli to interact with containerd called nerdctl. We can execute the same docker cli commands like:
  • Nerdctl v2 Beta
    1 project | news.ycombinator.com | 1 Feb 2024
  • Nginx Unit โ€“ Universal web app server
    17 projects | news.ycombinator.com | 10 Sep 2023
    Using nerdctl: https://github.com/containerd/nerdctl

    I'd really disagree that compose files are somehow one-shot, or blindly modified. To the contrary, really, we have them checked in with the source code. Upon deployment to the cluster, the (running) services will be intelligently updated or replaced (in a rolling manner, causing zero downtime). LXC might be more elegant, but I have no idea what simple, file-based format I could use to let engineers describe the environment their app should run in without compose.

    I need something that even junior devs can start up with a single command, that can be placed in the VCS along with the code, and that will not require deep Linux knowledge to get running. Open for suggestions here, really.

  • Jenkins Agents On Kubernetes
    7 projects | dev.to | 4 Sep 2023
    Now since Kubernetes works off of containerd I'll be taking a different approach on handling container builds by using nerdctl and the buildkit that comes bundled with it. I'll do this on the amd64 control plane node since it's beefier than my Raspberry Pi workers for handling builds and build related services. Go ahead and download and unpack the latest nerdctl release as of writing (make sure to check the release page in case there's a new one):
  • Going through a Kubernetes training with autogenerated captions and about half are coming up like this.
    1 project | /r/kubernetes | 29 Jun 2023
    That's why nerdctl, their cli binary, is so well named.
  • Python + containerd? Who might be interested?
    2 projects | /r/Python | 27 Apr 2023
    Well, it is indeed a good option. However, containerd is a good alternative that is growing even among developers. Please see: https://github.com/containerd/nerdctl
  • How to own your own Docker Registry address
    5 projects | news.ycombinator.com | 17 Mar 2023
    Nerdctl/containerd has IPFS support :)

    https://github.com/containerd/nerdctl/blob/main/docs/ipfs.md

  • DockerHub replacement stratagy and options
    5 projects | /r/ipfs | 16 Mar 2023
    nerdctl supports IPFS for both image pulling and pushing, including encrypted images and eStargz lazy pulling. For building, the current method is a locally hosted translator so that the traditional pulls can be converted to work over IPFS. They even have docs on running it on k8s node, though if my reading is correct this isn't exactly a cloud native approach (running systemd services on each node...).
  • Docker's deleting Open Source images and here's what you need to know
    23 projects | news.ycombinator.com | 15 Mar 2023
  • Release v1.0.0 ยท containerd/nerdctl
    1 project | /r/devopsish | 21 Oct 2022

What are some alternatives?

When comparing hcl and nerdctl you can also consider the following projects:

terraform - Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.

lima - Linux virtual machines, with a focus on running containers

k2tf - Kubernetes YAML to Terraform HCL converter

podman-compose - a script to run docker-compose.yml using podman

nerdctl - contaiNERD CTL - Docker-compatible CLI for containerd, with support for Compose, Rootless, eStargz, OCIcrypt, IPFS, ...

kaniko - Build Container Images In Kubernetes

nomad-driver-containerd - Nomad task driver for launching containers using containerd.

podman - Podman: A tool for managing OCI containers and pods.

atlas - Manage your database schema as code

Moby - The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems

swarmpit - Lightweight mobile-friendly Docker Swarm management UI

k3s - Lightweight Kubernetes