Update on kernel 1096 and the issue still persist
in our container we run as non-root user
after sed-ing the file persmission are still rw for the user but the nginx cannot read the file
after chmod u+rw file with same user the file is readable again...
E.g.
docker run --rm -ti --entrypoint=bash -u nginx nginx
nginx@5d5453275231:/$ cd /tmp/
nginx@5d5453275231:/tmp$ echo aaa > test
nginx@5d5453275231:/tmp$ cat test
aaa
nginx@5d5453275231:/tmp$ sed -i 's/a/Q/g' test
nginx@5d5453275231:/tmp$ cat test
cat: test: Permission denied
nginx@5d5453275231:/tmp$ chmod u+rw test
nginx@5d5453275231:/tmp$ cat test
QQQ
nginx@5d5453275231:/tmp$
Update on kernel 1096 and the issue still persist
in our container we run as non-root user
after sed-ing the file persmission are still rw for the user but the nginx cannot read the file
after chmod u+rw file with same user the file is readable again...
E.g. 231:/$ cd /tmp/ 231:/tmp$ echo aaa > test 231:/tmp$ cat test 231:/tmp$ sed -i 's/a/Q/g' test 231:/tmp$ cat test 231:/tmp$ chmod u+rw test 231:/tmp$ cat test 231:/tmp$
docker run --rm -ti --entrypoint=bash -u nginx nginx
nginx@5d5453275
nginx@5d5453275
nginx@5d5453275
aaa
nginx@5d5453275
nginx@5d5453275
cat: test: Permission denied
nginx@5d5453275
nginx@5d5453275
QQQ
nginx@5d5453275