google / google/gvisor

Support netstat

Open
#2,112 0 comments 0 reactions 0 assignees View on GitHub
area: compatibility area: networking priority: p2 type: enhancement
Dominant language
Go
Stars
19.3k
Forks
2k
Avg merge
3d 5h
Merged PRs (30d)
264

Description

Support for the netstat tool

On ubuntu:
```
~$ docker run --runtime=gvisor --rm -ti ubuntu su -c "apt update && apt install net-tools && netstat"
...
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
```

On alpine:
```
~$ docker run --runtime=gvisor --rm -ti alpine netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
netstat: /proc/net/raw: No such file or directory
netstat: /proc/net/raw6: No such file or directory
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.