{
    "url": "https://delaparra-services.nl/knowledge-hub/tmpfs",
    "locale": "en",
    "title": "tmpfs: Knowledge hub | DeLaParra Services",
    "description": "An in-memory mount that never touches disk and vanishes when the container stops. For secrets and scratch data.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/tmpfs",
        "nl": "https://delaparra-services.nl/nl/kennisbank/tmpfs"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/tmpfs.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/tmpfs.md",
        "json": "https://delaparra-services.nl/knowledge-hub/tmpfs.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/tmpfs.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/tmpfs.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/tmpfs.csv",
            "encodingFormat": "text/csv",
            "name": "tmpfs.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/tmpfs.json",
            "encodingFormat": "application/json",
            "name": "tmpfs.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/tmpfs.md",
            "encodingFormat": "text/markdown",
            "name": "tmpfs.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/tmpfs.pdf",
            "encodingFormat": "application/pdf",
            "name": "tmpfs.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/tmpfs.zip",
            "encodingFormat": "application/zip",
            "name": "tmpfs.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/tmpfs/skills.zip",
            "encodingFormat": "application/zip",
            "name": "tmpfs-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [tmpfs](<https://delaparra-services.nl/knowledge-hub/tmpfs>)\n\n  \n\nCategory: Docker \n\n# tmpfs\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is tmpfs?\n\n \n\ntmpfs: 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.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about tmpfs\n\n  \n\n### What should you keep in mind with tmpfs?\n\n \n\nSet 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.\n\n    \n\n### What does an example of tmpfs look like?\n\n \n\n```\ndocker run --tmpfs /run:size=64m myapp:1.0\n```\n\n \n\n## At a glance\n\n   CategoryDocker Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More Docker terms\n\n \n\n- [services](<https://delaparra-services.nl/knowledge-hub/services>) \n- [tag](<https://delaparra-services.nl/knowledge-hub/tag>) \n- [tag-and-push](<https://delaparra-services.nl/knowledge-hub/tag-and-push>) \n- [USER](<https://delaparra-services.nl/knowledge-hub/user>) \n- [VOLUME](<https://delaparra-services.nl/knowledge-hub/volume>) \n- [volumes (compose)](<https://delaparra-services.nl/knowledge-hub/volumes-compose>)\n\n \n\n[All terms starting with T](<https://delaparra-services.nl/knowledge-hub#letter-t>)\n\n \n\n## Skills\n\n \n\n- ### Docker Compose Patterns\n\n \n\nUse 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.\n\n [View skill](<https://delaparra-services.nl/skills/docker-compose-patterns>) [Download zip](<https://delaparra-services.nl/skills/docker-compose-patterns/download>) \n- ### Docker Destructive Command Guardrails\n\n \n\nUse 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\\`,\n\n [View skill](<https://delaparra-services.nl/skills/docker-destructive-guardrails>) [Download zip](<https://delaparra-services.nl/skills/docker-destructive-guardrails/download>) \n- ### Docker Project Foundations\n\n \n\nUse 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.\n\n [View skill](<https://delaparra-services.nl/skills/docker-project-foundations>) [Download zip](<https://delaparra-services.nl/skills/docker-project-foundations/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/tmpfs/skills.zip>)\n\n \n\n## Manuals\n\n \n\n- [Docker for your Laravel app](<https://delaparra-services.nl/manuals/docker-voor-je-laravel-app>)\n\n \n\n## Related services\n\n \n\n- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)\n\nPerhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.\n\n \n\n## Need any help?\n\n \n\nStuck 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.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/tmpfs)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/tmpfs#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/tmpfs",
                "name": "tmpfs: Knowledge hub | DeLaParra Services",
                "description": "An in-memory mount that never touches disk and vanishes when the container stops. For secrets and scratch data.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/tmpfs#term",
                    "name": "tmpfs",
                    "description": "An in-memory mount that never touches disk and vanishes when the container stops. For secrets and scratch data.",
                    "termCode": "tmpfs",
                    "url": "https://delaparra-services.nl/knowledge-hub/tmpfs",
                    "inLanguage": "en",
                    "keywords": "Docker",
                    "dateModified": "2026-11-25T17:46:31+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/tmpfs#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/tmpfs#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/tmpfs#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is tmpfs?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "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."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with tmpfs?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "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."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What does an example of tmpfs look like?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "docker run --tmpfs /run:size=64m myapp:1.0"
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/docker-compose-patterns#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/docker-destructive-guardrails#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/docker-project-foundations#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/docker-voor-je-laravel-app#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/tmpfs#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "tmpfs"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/tmpfs#dataset",
                "name": "tmpfs",
                "description": "An in-memory mount that never touches disk and vanishes when the container stops. For secrets and scratch data.",
                "url": "https://delaparra-services.nl/knowledge-hub/tmpfs",
                "identifier": "https://delaparra-services.nl/knowledge-hub/tmpfs#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/tmpfs#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "Docker",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:31+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "tmpfs.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/tmpfs.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "tmpfs.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/tmpfs.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "tmpfs.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/tmpfs.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "tmpfs.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/tmpfs.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "tmpfs.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/tmpfs.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "tmpfs-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/tmpfs/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}