Docker Images Profiling Tools - Gapminder/waffle-server GitHub Wiki
List of available tools inside docker images
- Htop - interactive process viewer
- Net-tools - A collection of programs that form the base set of networking distribution for the Linux operating system. This package includes arp, hostname, ifconfig, ipmaddr, iptunnel, mii-tool, nameif, netstat, plipconfig, rarp, route and slattach.
- Nano - Small and simple text editor
- Lsof - Util that report a list of all open files and the processes that opened them
- Df, Du - Disk space utils
Examples of usage
Htop
$ htop
Available flags:
- -C --no-color Use a monochrome color scheme
- -d --delay=DELAY Set the delay between updates, in tenths of seconds
- -h --help Print this help screen
- -s --sort-key=COLUMN Sort by COLUMN (try --sort-key=help for a list)
- -u --user=USERNAME Show only processes of a given user
- -p --pid=PID,[,PID,PID...] Show only the given PIDs
- -v --version Print version info
Net-tools (netstat)
To see what ports are open, run command
$ netstat -nal
and check on TCP and UDP ports in the listing. To see what processes are bound to what ports, run as root
$ netstat -nalp
Active Internet connections (w/o servers)
$ netstat -A inet –program
$ netstat -l -a
Active Internet connections (servers and established)
$ netstat -l -a
Nano
$ nano {FILE_NAME}
Lsof
$ lsof -i
$ lsof -i :{PORT}
Available flags:
- -i Lists IP sockets.
- -n Do not resolve hostnames (no DNS).
- -P Do not resolve port names (list port number instead of its name).
Df
$ df -h
$ df --inodes
Du
$ du -h
$ du -sh
$ du -h --max-depth=1
$ du -h | sort -n