I have a number of LXC containers (ubuntu template) which all have their own separate APT caches.
/var/lib/lxc/*/rootfs/var/cache/apt/archives/
I would like to have these linked to the host machines APT cache at:
/var/cache/apt/archives
From what I remember, symlinking out of a chroot jail is a massive no-no, so I was wondering what some other clean alternatives would be. One solution I thought of what just making a cron job on the host machine to sync with the guest containers, but I was wondering if there was any way I could handle this without having to schedule synchronizations? A symlink would just be so convenient, but it'd be a massive security hole, right?
Thanks, guys.