blog/_posts/2019-01-11-how-to-update-al...

29 lines
1.2 KiB
Markdown

---
title: "How to update all containers with Proxmox 5 ?"
date: 2019-01-11
url: how-to-update-all-containers-with-proxmox-5
layout: post
category: Programming
image: /img/blog/how-to-update-all-containers-with-proxmox-5.png
description: "A short script LXC containers upgrading on Proxmox 5"
---
[![A missing blog post image](/img/blog/how-to-update-all-containers-with-proxmox-5.png)](/img/blog/how-to-update-all-containers-with-proxmox-5.png)
### Introduction
If you landed there, you are surely dealing with _real_ containers (take that Docker), and within _real_ containers, we keep the system up to date, isn't it ? :smirk:
When you have only few containers, doing system updates is quick and easy.
When you have _many_ containers, it's getting boring.
Below is a (maintained) script to perform automatic updates, within your running containers, on top of Proxmox 5.
### The script
<script src="https://gist.github.com/HorlogeSkynet/740928addd0943eb64a2cc824d2db990.js"></script>
### Conclusion
No conclusion, but a big thank to the author of this [blog post](https://seantemple.com/proxmox/bash/admin/2017/10/01/update-all-containers.html), for its BASH-syntax escaping alchemy, allowing us to execute operation from outside the container.