Docker: Difference between revisions
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 | 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.