Can docker "instance" run totally in ram?

docker

Solution

This can be done. If you mount /var/lib/docker on a tmpfs, Docker can use other storage backends, like OverlayFS, on top of it.

Problem

I would like to power a docker instance in ram... totally inside ram... using tmpfs Can it be done? I'm not sure how docker uses filesystems as I'm too used to using kvm and xen, they both need to set up a default size before it can be used. So how does "docker fs" work?

Original source