Hey - so I am just getting started with self hosting and docker containers.

I have found that I can backup all my containers to this location easily via script https://hub.docker.com/repository/docker

My largest container compressed size in my private repository is 3GB.

I was wondering if backing up to a hub.docker private repository is okay and if there is going to be cost/limitations to doing that?

What are you using for backing up your containers? I noticed people often expressing importance of backups but then not sharing how they are doing their backups and their backup setup.

  • tweek91330@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I won’t say you cannot or shouldn’t backup a container since it it wrong imo, but as your using docker as a base i’d say just backup mapped volumes and configuration files. Docker is built around breaking and rebuilding your container and keep working anyways as long as your mapped volumes and docker configurations are the same (asuming you use a well maintained image for updates or something of your own).

    That’s probably the sane way to do it and will save you space. I don’t see the benefit of a full container backup (unless it’s an lxc, lxd container or another full persistent container type).

    As for the backup repository you can use whatever. If it were me i’d use another server or a NAS, but most cloud storage provider would fit. Storage is never free though.