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
Latest comments (0)