this post was submitted on 18 Mar 2025
22 points (100.0% liked)

Nix / NixOS

2056 readers
8 users here now

Main links

Videos

founded 2 years ago
MODERATORS
 

I’ve recently discovered nixos containers and was wondering if there where any pros/cons of running them vs. Docker containers. Like if one needs to run a containerised service, would it be better to run it as a nixos container or a docker container in terms of resource consumption? And are there any limitations of each approach?

you are viewing a single comment's thread
view the rest of the comments
[–] axx@slrpnk.net 3 points 3 days ago

The main advantage of NixOS containers, to my limited understanding, is that since they are built by Nix, all dependencies are updated with nixpkgs (no woefully out of date stuff in one of the layers of the container image) and you can pin these if you need to.

I'd like to understand the differences and similarities between the two better too though.