Answer the question
In order to leave comments, you need to log in
How to run docker on read-only filesystem?
Colleagues, tell me how to organize the normal operation of docker on a readonly file system.
My hosts are single-platform with an operating system on an sd-card. SD cards are known to have a limited rewriting resource. I would like to give the device to production, eliminating the factor of failure of the sd card
Answer the question
In order to leave comments, you need to log in
SD cards are known to have a limited rewriting resource.Solved by purchasing SLC/MLC SD cards.
As far as I understand, it is enough to disable logging, and everything will work.
It won't work on ro.
Docker stores its state in /var/lib/docker This
is where images, data and container configurations go, etc.
What options do I see:
1. Mount the specified directory on tmpfs
2. Refuse to use docker, supply services "baked " into the main image from OS to RO FS
3. Switch to alternative containerization technologies such as systemd-nspawn
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question