Note the bug in tmpfs permissions

There is an open bug in tmpfs that results in permissions being reset on container restart. At this point it has tripped up quite a few people. This adds a hint about the issue, and a link to a the workaround we ultimately used (a functionality not mentioned elsewhere in the docs).
This commit is contained in:
thegoodlittlescript 2023-02-02 08:41:28 -07:00 committed by GitHub
parent 785ec8c45f
commit 23ca913a40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ persist in either the host or the container writable layer.
* Unlike volumes and bind mounts, you can't share `tmpfs` mounts between
containers.
* This functionality is only available if you're running Docker on Linux.
* Setting permissions on tmpfs may still suffer from a bug causing them to [reset after container restart](https://github.com/docker/for-linux/issues/138). In some cases [setting the uid/gid](https://github.com/docker/compose/issues/3425#issuecomment-423091370) can serve as a workaround.
## Choose the --tmpfs or --mount flag