Docker Compose Rootfs Upgrade

stabl-gjn
Fri, 20 Dec 2024 14:48:25 +0000
General Discussions

Hey there,

we are planning to deploy our custom application with the docker-compose update module. Along side normal app deployments we are also planning for rootfs upgrades.
We are running a custom Yocto Image based on the Kirkstone branch.

Docker stores the images in /var/lib/docker by default which is on the root partition. This means if we do any rootfs upgrade the images, states, … are also all replaced/rolled back.

Is there any suggestion/best practices to handle this? E.g. would it be recommended to move the docker root directory to /data/....

If anybody has any experience with this, i would be very happy over any input.

Thanks