How can we store container data in memory using docker volume
tmpfs in Docker is used to store the container data into host's memory. But when the container is stopped or host system is restarted the data written into tmpfs will be lost.
command for attaching tmpfs to container:
docker run -itd --name --mount type=tmpfs,destination=/opt/example ubuntu
Top comments (0)