Debug School

Poornima P V
Poornima P V

Posted on

Docker training - Day 3 : Assignment 1

When you create a container with a tmpfs mount, the container can create files outside the container’s writable layer.
As opposed to volumes and bind mounts, a tmpfs mount is temporary, and only persisted in the host memory. When the container stops, the tmpfs mount is removed, and files written there won’t be persisted.
docker run -d -it --name tmptest --mounttype=tmpfs,destination=/app nginx:latest

Top comments (0)