gitpod icon indicating copy to clipboard operation
gitpod copied to clipboard

In docker container, second process cannot write to /proc/1/fd/1

Open rfay opened this issue 1 year ago • 3 comments

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

rfay avatar May 09 '23 14:05 rfay