Commit dbd3c8b
committed
Work around tmpfs default permissions regression in runc 1.33
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.1 parent b732e6f commit dbd3c8b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments