Debug School

Sivakumar S
Sivakumar S

Posted on

Docker tmpfs volume using memory

this is another type of filesystem - unlike docker volume and mountfs, this tmpfs is stored in host node's memory temporarily, when we stop the container, the data written to this tmpfs will be lost.

we can use below command to attach tmpfs to container

docker run -itd --name --mount type=tmpfs,destination=/opt/example ubuntu

Top comments (0)