Work around tmpfs default permissions regression in runc 1.3.3#1964
Merged
Work around tmpfs default permissions regression in runc 1.3.3#1964
Conversation
The Python classic repo's CI just started failing in the container-test job with: `mkdir: cannot create directory '/app/.heroku': Permission denied` eg: https://github.com/heroku/heroku-buildpack-python/actions/runs/19368179568/job/55418539741 After updating Docker locally, I was able to reproduce the error, and have found it's due to the recent runc 1.33 release: https://github.com/opencontainers/runc/releases/tag/v1.3.3 This runc release includes a number of security fixes - however, one of which has a regression: opencontainers/runc#4971 There is a fix for this upstream: opencontainers/runc#4973 ...but it's not released yet. However, we can work around the issue by explicitly setting the previous tmpfs permissions using `:mode=1777`: https://docs.docker.com/engine/storage/tmpfs/#options-for---tmpfs GUS-W-20221627.
colincasey
approved these changes
Nov 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Python classic repo's CI just started failing in the container-test job with:
mkdir: cannot create directory '/app/.heroku': Permission deniedeg:
https://github.com/heroku/heroku-buildpack-python/actions/runs/19368179568/job/55418539741
After updating Docker locally, I was able to reproduce the error, and have found it's due to the recent runc 1.3.3 release: https://github.com/opencontainers/runc/releases/tag/v1.3.3
This runc release includes a number of security fixes, one of which has a regression:
opencontainers/runc#4971
There is a fix for this upstream:
opencontainers/runc#4973
...but it's not released yet.
However, we can work around the issue by explicitly setting the previous tmpfs permissions using
:mode=1777:https://docs.docker.com/engine/storage/tmpfs/#options-for---tmpfs
GUS-W-20221627.