1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [tmpfs](<https://delaparra-services.nl/knowledge-hub/tmpfs>)

  

Category: Docker 

# tmpfs

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is tmpfs?

 

tmpfs: An in-memory mount that never touches disk and vanishes when the container stops. For secrets and scratch data. A ` tmpfs ` mount in Docker is a folder stored in memory instead of on disk. It disappears completely when the container stops. That makes it useful for temporary files that should never touch the disk, such as decrypted secrets, session files or scratch space, and for speed when a program writes many small temporary files.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about tmpfs

  

### What should you keep in mind with tmpfs?

 

Set a size limit, as in ` --tmpfs /tmp:size=64m `, because memory used by ` tmpfs ` counts towards the container's memory limit. A runaway process filling it can get the container killed. In Kubernetes, the equivalent is an ` emptyDir ` volume with ` medium: Memory `. Combined with a read-only root file system, tmpfs mounts give an application exactly the writable space it needs and nothing more.

    

### What does an example of tmpfs look like?

 

```
docker run --tmpfs /run:size=64m myapp:1.0
```

 

## At a glance

   CategoryDocker Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More Docker terms

 

- [services](<https://delaparra-services.nl/knowledge-hub/services>) 
- [tag](<https://delaparra-services.nl/knowledge-hub/tag>) 
- [tag-and-push](<https://delaparra-services.nl/knowledge-hub/tag-and-push>) 
- [USER](<https://delaparra-services.nl/knowledge-hub/user>) 
- [VOLUME](<https://delaparra-services.nl/knowledge-hub/volume>) 
- [volumes (compose)](<https://delaparra-services.nl/knowledge-hub/volumes-compose>)

 

[All terms starting with T](<https://delaparra-services.nl/knowledge-hub#letter-t>)

 

## Skills

 

- ### Docker Compose Patterns

 

Use this skill when creating, modifying, or debugging Docker Compose configurations, even if the user just says they need to wire services together, add a database to their stack, or set up a local development environment with multiple containers. Covers service definitions, health checks, dependency ordering, volumes, networks, environment variables, and development overrides.

 [View skill](<https://delaparra-services.nl/skills/docker-compose-patterns>) [Download zip](<https://delaparra-services.nl/skills/docker-compose-patterns/download>) 
- ### Docker Destructive Command Guardrails

 

Use this skill before running, or recommending, any Docker command that deletes, wipes, resets, or otherwise irreversibly changes state — even if the user just says to "clean up", "clear the cache", "start fresh", "wipe everything", "nuke it", "reset", "force remove", or "tear down" Docker resources. Covers generic Docker CLI destructive operations not owned by a more specific skill — \`docker rm\`,

 [View skill](<https://delaparra-services.nl/skills/docker-destructive-guardrails>) [Download zip](<https://delaparra-services.nl/skills/docker-destructive-guardrails/download>) 
- ### Docker Project Foundations

 

Use this skill when setting up, initializing, or Dockerizing a project, even if the user doesn't explicitly mention Docker but describes a need for containerized local development, adding a database or cache dependency, or running services without host-level installs. Covers Dockerfile, compose.yaml, and .dockerignore creation with Docker best practices.

 [View skill](<https://delaparra-services.nl/skills/docker-project-foundations>) [Download zip](<https://delaparra-services.nl/skills/docker-project-foundations/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/tmpfs/skills.zip>)

 

## Manuals

 

- [Docker for your Laravel app](<https://delaparra-services.nl/manuals/docker-voor-je-laravel-app>)

 

## Related services

 

- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)

Perhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/tmpfs)
