Search code examples
imagedocker

Docker create image with all installed applications


How can I "mirror" my whole system to a Docker image on an automated way? I wouldn't like to create only a base-image, but all my installed applications to image.


Solution

  • You can find some example in "Create a base image".
    You have two options:

    • use a distro command like debootstrap, which can install a distro base system into a subdirectory of another, already installed system.
      But that is not exactly what you want, since it wouldn't copy your own host distro content.
    • use the SCRATCH image, and copy the files you want in it.