Can a docker "instance" run completely in a ram?

I would like to include a docker instance in ram ... completely inside ram ... using tmpfs

Can this be done?

I'm not sure how docker uses file systems, since I'm too used to using kvm and xen, they need to set a default size before it can be used.

So how does docker fs work?

+7
docker
source share
2 answers

It can be done. If you mount / var / lib / docker on tmpfs, Docker can use other repositories, such as OverlayFS, on top of it.

+4
source share

Docker uses what it calls a β€œunion file system” consisting of several read-only layers with a copy-on-top layer on top (see http://docs.docker.com/terms/layer/ ). It can use one of several drivers for storage (in order of preference): AUFS, BTRFS, devicemapper, overlayfs or VFS. Because of this, no, I don’t think you can use tmpfs.

Additional information at https://developerblog.redhat.com/2014/09/30/overview-storage-scalability-docker/

+2
source share

All Articles