- It is one of the 3 options available for user to store data. unlike volume & mountfs, the data stored under tmpfs mount is not persistent, it is stored in the host memory.
This is used when we don't want to write sensitive data or data that relates to non-persistent application state in the container layer or on the host FS.
usage:
1st Method:
docker run -itd --name temp_alpine --tmpfs /u01/temp alpine
2nd Method:
docker run -itd --name temp_alpine --mount
type=tmpfs,destination=/u01/temp alpine
Top comments (0)