V
V
voidSoul2019-09-22 00:34:40
File systems
voidSoul, 2019-09-22 00:34:40

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

3 answer(s)
C
chupasaurus, 2019-09-22
@chupasaurus

SD cards are known to have a limited rewriting resource.
Solved by purchasing SLC/MLC SD cards.
If possible, all logs (both system and container) should be sent to the aggregator instead of local storage.

V
Vitaly Karasik, 2019-09-22
@vitaly_il1

As far as I understand, it is enough to disable logging, and everything will work.

G
Georg Gaal, 2019-09-23
@gecube

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 question

Ask a Question

731 491 924 answers to any question