C7 And Docker Storage
Was working on docker on a server, and on startup, I see Nov 29 10:58:27
time=”2017-11-29T10:58:27.612849959-05:00″ level=warning msg=”devmapper:
Usage of loopback devices is strongly discouraged for production use. Please use `–storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section.”
Nov 29 10:58:27
time=”2017-11-29T10:58:27.655600686-05:00″ level=warning msg=”devmapper:
Base device already exists and has filesystem xfs on it. User specified filesystem will be ignored.”
The latter would explain the message my user’s job gave him when it tried to umount /
A bit of googling, and I see something called overlayFS can be used… but I know nothing about that, or how dangerous it is. Anyone got a pointed to something more than the minimal how to configure docker to use it?
mark
3 thoughts on - C7 And Docker Storage
You could follow CentOS Atomic SIG
https://wiki.CentOS.org/SpecialInterestGroup/Atomic http://www.projectatomic.io/download/
and/or read here and adapt in case for your storage needs:
http://www.projectatomic.io/docs/docker-storage-recommendation/
See also here for overlayfs addiction in CentOS Atomic Host in September this year https://seven.CentOS.org/2017/09/new-CentOS-atomic-host-with-overlayfs-storage/
HIH, Gianluca
Gianluca Cecchi wrote:
Interesting, but it doesn’t help me: I can’t rebuild the server, it’s in use, and I yum installed docker from the std. repos. What I see from the links tells me how to switch storage, not how to manually configure overlay2 storage, and whether I can do as I said, and point it to an NFS-mounted location.
mark
I believe use of any kind of storage in conjunction with docker is generally discouraged. Docker is a quite neat way of packaging up apps and deploying them but if you care about your data I would store it somewhere independent of docker.
Ta,
Andrew