Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTY inconsistency #1

Open
nixpig opened this issue Dec 27, 2024 · 0 comments
Open

TTY inconsistency #1

nixpig opened this issue Dec 27, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@nixpig
Copy link
Owner

nixpig commented Dec 27, 2024

Appears to be inconsistency in TTY in brownie runtime compared to runc; also appears to be dependent on image.


brownie / alpine

~ $ docker run -it --rm --runtime brownie alpine

/ # ps -o pid,tty,comm
PID   TT     COMMAND
    1 136,1  sh
    7 136,1  ps

/ # ls -la /dev/pts
total 0
drwxr-xr-x    2 root     root             0 Dec 27 08:07 .
drwxrwxrwt    5 root     root           340 Dec 27 08:07 ..
c---------    1 root     root        5,   2 Dec 27 08:07 ptmx

runc / alpine

~ $ docker run -it --rm --runtime runc alpine

/ # ps -o pid,tty,comm
PID   TT     COMMAND
    1 136,0  sh
    7 136,0  ps

/ # ls -la /dev/pts
total 0
drwxr-xr-x    2 root     root             0 Dec 27 08:09 .
drwxr-xr-x    5 root     root           360 Dec 27 08:09 ..
crw--w----    1 root     tty       136,   0 Dec 27 08:09 0
crw-rw-rw-    1 root     root        5,   2 Dec 27 08:09 ptmx

brownie / ubuntu

~ $ docker run -it --rm --runtime brownie ubuntu

root@26e799317c8b:/# ps -o pid,tty,comm
    PID TT       COMMAND
      1 ?        bash
      9 ?        ps

root@26e799317c8b:/# ls -la /dev/pts
total 0
drwxr-xr-x 2 root root    0 Dec 27 08:10 .
drwxrwxrwt 5 root root  340 Dec 27 08:10 ..
c--------- 1 root root 5, 2 Dec 27 08:10 ptmx

runc / ubuntu

~ $ docker run -it --rm --runtime runc ubuntu

root@87c02b6e2ebc:/# ps -o pid,tty,comm
    PID TT       COMMAND
      1 pts/0    bash
      9 pts/0    ps

root@87c02b6e2ebc:/# ls -la /dev/pts
total 0
drwxr-xr-x 2 root root      0 Dec 27 08:11 .
drwxr-xr-x 5 root root    360 Dec 27 08:11 ..
crw--w---- 1 root tty  136, 0 Dec 27 08:11 0
crw-rw-rw- 1 root root   5, 2 Dec 27 08:11 ptmx
@nixpig nixpig added the bug Something isn't working label Dec 27, 2024
@nixpig nixpig self-assigned this Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant