Description
tty and ps commands fail to detect terminal when run under gVisor.
This is easiest to show with Docker, but if runsc is run directly with the "terminal": true in the config, it has the same problem.
$ docker run --runtime=runsc -it --rm ubuntu tty
not a tty
$ docker run --runtime=runsc -it --rm ubuntu ps t
PID TTY STAT TIME COMMAND
1 ? Rs 0:00 ps t
Compare to the output with the default Docker runtime:
$ docker run -it --rm ubuntu tty
/dev/pts/0
$ docker run -it --rm ubuntu ps t
PID TTY STAT TIME COMMAND
1 pts/0 Rs+ 0:00 ps t
Steps to reproduce
No response
runsc version
runsc version release-20260608.0
spec: 1.2.1
docker version (if using docker)
uname
No response
kubectl (if using Kubernetes)
repo state (if built from source)
No response
runsc debug logs (if available)
Description
ttyandpscommands fail to detect terminal when run under gVisor.This is easiest to show with Docker, but if
runscis run directly with the"terminal": truein the config, it has the same problem.Compare to the output with the default Docker runtime:
Steps to reproduce
No response
runsc version
docker version (if using docker)
uname
No response
kubectl (if using Kubernetes)
repo state (if built from source)
No response
runsc debug logs (if available)