gitpod
gitpod copied to clipboard
In docker container, second process cannot write to /proc/1/fd/1
Bug description
Writing to /proc/1/fd/1 (or /proc/1/fd/2) is a standard idiom for processes inside a docker container to add to the docker logs.
On most platforms, it's possible for processes in addition to process 1 to write to these, but on gitpod it doesn't seem to be possible.
Steps to reproduce
# In first terminal
docker run -it --rm -u 33 --name=junk ubuntu bash
# In second terminal
docker run -it junk bash
ls >/proc/1/fd/1
bash: /proc/1/fd/1: Permission denied
Workspace affected
All
Expected behavior
- Permission should not be denied.
- Output should go to the first terminal
Example repository
No response
Anything else?
No response