Docker: Difference between revisions

imported>Onny
Minor cleanup
imported>Das-g
→‎Container images with nix: replace lnl7/nix with more recent images, as lnl7/nix is old
Line 61: Line 61:
== Container images with nix ==
== Container images with nix ==


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 [https://github.com/LnL7/nix-docker docker images] with nix preinstalled, maintained by LnL7.
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:
 
* [nixos/nix](https://hub.docker.com/r/nixos/nix/tags) (official)
* [nixpkgs/nix](https://hub.docker.com/r/nixpkgs/nix) (built from https://github.com/nix-community/docker-nixpkgs)


== Docker Compose with Nix ==
== Docker Compose with Nix ==