Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
What's stopping you from using apt-dater for containers?
When there are many servers, I usually use puppet.
What exactly do you want to update? package base?
If yes, then it can be done like this:
cd /var/lib/vz/root/
for d in * ; do
if test -d "$d/var/lib/apt"; then
chroot "$d" apt-get -y update
chroot "$d" apt-get -y dist-upgrade
elif test -d "$d/var/lib/yum"; then
chroot "$d" yum -y upgrade
else
echo "ERROR: unknown packaging system in CT $d"
fi
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question