* Upgrade alpine to 3.15 * Add executability test to entrypoint for too old dockers Signed-off-by: Andrew Thornton <art27@cantab.net> * Update docker/rootless/usr/local/bin/docker-entrypoint.sh
Showing the changes to docker/root (1 of 4 files). Show all
Unified · Split
| @@ -1,5 +1,11 @@ | ||
| 1 | 1 | #!/bin/sh |
| 2 | 2 | |
| 3 | +# Protect against buggy runc in docker <20.10.6 causing problems in with Alpine >= 3.14 | |
| 4 | +if [ ! -x /bin/sh ]; then | |
| 5 | + echo "Executable test for /bin/sh failed. Your Docker version is too old to run Alpine 3.14+ and Gitea. You must upgrade Docker."; | |
| 6 | + exit 1; | |
| 7 | +fi | |
| 8 | + | |
| 3 | 9 | if [ "${USER}" != "git" ]; then |
| 4 | 10 | # rename user |
| 5 | 11 | sed -i -e "s/^git\:/${USER}\:/g" /etc/passwd |