Debug School

Joy
Joy

Posted on

Docker Assignment 1-Day 3

How can we store container data in memory using docker volume?
We can use the tempfs as mount type.

docker run --mount type=tmpfs,dst=/tmp command creates a blank tmpfs device and attaches it to the new container’s /tmp file tree. Any files created under this file tree will be in memory storage rather than on disk. Using the --tmpfs flag is also doing the same thing but the destination is not configurable.

Top comments (0)