Docker: Difference between revisions

imported>Jooooscha
mNo edit summary
imported>Jooooscha
mNo edit summary
Line 61: Line 61:
</syntaxHighlight>
</syntaxHighlight>


== Container images with nix ==
== Using Nix in containers ==


While [https://nixos.org/manual/nixpkgs/stable/#sec-pkgs-dockerTools <code>dockerTools</code>] allows to build lightweight containers, it requires <code>nix</code> to be installed on the host system. An alternative are docker images with nix preinstalled:
While [https://nixos.org/manual/nixpkgs/stable/#sec-pkgs-dockerTools <code>dockerTools</code>] allows to build lightweight containers, it requires <code>nix</code> to be installed on the host system. An alternative are docker images with nix preinstalled: