Docker Community Forums

Share and learn in the Docker community.

Immutable container host


(Cvermeul) #1

I have a question about immutable infrastructure.
The principle is to redeploy the environment at each application deployment and that’s what we want to do when we are redeploying containers.
My question is about the host containers, if we respect the principle of immutable infrastructure should we not also redeploy the host (VM) ?


(Nathan Le Claire) #2

You would only need to re-bake and re-deploy the machine images when something actually changed on the host (i.e. hopefully much less frequently than with your containerized applications) – for instance, if you wanted to roll out servers that have a new apt package installed and configured, or if you need to upgrade your Docker version.