Empty "/tmp/" directory at init
This commit is contained in:
committed by
GitHub
parent
8123a21f3e
commit
5d4abe1caf
@@ -1,13 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Clean up /tmp, just in case there is some leftover files from previous run and `--tmpfs` is not specified.
|
|
||||||
# Without this cleanup or `--tmpfs`, the container will no longer start after 10 startups.
|
|
||||||
rm -rf /tmp
|
|
||||||
mkdir /tmp
|
|
||||||
chmod a+rw /tmp
|
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
# Remove leftover files
|
||||||
|
find /tmp/ -mindepth 1 -delete
|
||||||
|
|
||||||
# Create additional groups
|
# Create additional groups
|
||||||
_IFS=${IFS}; IFS=,
|
_IFS=${IFS}; IFS=,
|
||||||
for gid in ${UNPRIVILEGED_USER_GROUPS?}; do
|
for gid in ${UNPRIVILEGED_USER_GROUPS?}; do
|
||||||
|
|||||||
Reference in New Issue
Block a user