Docker Community Forums

Share and learn in the Docker community.

Tmpfs during image-build?

build
docker

(Nbmoody) #1

This is a more conceptual question, so feel free to point me toward a more appropriate channel, but I’ve had no luck on Stack Overflow, so I thought I would try in a more focused context:

Is it possible to mount a tmpfs in a container at build-time, such that it is always there a run-time? I know that it is possible to pass the --mount option on the command-line, but I was hoping to set my image up to run with the tmpfs already in place, or to have it setup when the image is run.