Not containers and data, but the images. The point would be reproducability in case a remote registry does not contain a certain image anymore. Do you do that and how?

  • wersooth@lemmy.ml
    link
    fedilink
    English
    arrow-up
    18
    ·
    22 hours ago

    if there are some custom image, e.g. additional stuff I added to an existing image, then I backup the dockerfile. you can rebuild the image anytime and the size is smaller than a binary.

    • brvslvrnst@lemmy.ml
      link
      fedilink
      English
      arrow-up
      8
      ·
      22 hours ago

      Came here to say that: the most economic solution is to backup any dockerfiles themselves, though that also has the caveat that any installs within the build steps might also depend on external resources that could also be dropped.

      There are methods of adding a local caching layer between your system and external, which might be what OP is after, but that involves investing in the additional space needed to back them up