docker run --tmpfs /tmp myimage

Category: Docker

docker run --tmpfs /tmp myimage

Mount a tmpfs (in-memory) filesystem at /tmp inside the container

Creates a temporary in-memory filesystem at /tmp inside the container. Fast, but data is lost when the container stops.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.