Docker: Difference between revisions

From NixOS Wiki
imported>Makefu
imported>Mic92
Line 11: Line 11:


== Building a docker image with nixpkgs ==
== Building a docker image with nixpkgs ==
There is [https://nixos.org/nixpkgs/manual/#sec-pkgs-dockerTools an entry for dockerTools in the nixpkgs manual ] for reference but no Guide how to use it for a real-world application
There is [https://nixos.org/nixpkgs/manual/#sec-pkgs-dockerTools an entry for dockerTools in the nixpkgs manual ] for reference.
In the nixpkgs repo some [https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/docker/examples.nix examples] can be found.


[[Category:Guide]]
[[Category:Guide]]

Revision as of 10:04, 7 September 2017

Enabling the docker service

Inside your configuration.nix:

{
  ...
  virtualisation.docker.enable = true;
}

Building a docker image with nixpkgs

There is an entry for dockerTools in the nixpkgs manual for reference. In the nixpkgs repo some examples can be found.