Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There's a whole chapter on images (VM, docker, appimage) in the manual. I can recommend starting there. https://nixos.org/manual/nixpkgs/stable/#chap-images

The smallest example is:

    pkgs.dockerTools.buildLayeredImage {
      name = "hello";
      contents = [ pkgs.hello ];
    }


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: