diff --git a/Dockerfile b/Dockerfile index f22e76d..0ce90d0 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.7 +FROM alpine:3.8 RUN set -ex \ && echo "http://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \ @@ -16,6 +16,7 @@ RUN set -ex \ dhcping \ drill \ ethtool \ + file\ fping \ iftop \ iperf \ @@ -24,6 +25,7 @@ RUN set -ex \ iptraf-ng \ iputils \ ipvsadm \ + libc6-compat \ liboping \ mtr \ net-snmp-tools \ @@ -45,8 +47,11 @@ RUN set -ex \ # apparmor issue #14140 RUN mv /usr/sbin/tcpdump /usr/bin/tcpdump +# Installing ctop - top-like container monitor +RUN wget https://github.com/bcicen/ctop/releases/download/v0.7.1/ctop-0.7.1-linux-amd64 -O /usr/local/bin/ctop && chmod +x /usr/local/bin/ctop + # Installing calicoctl -RUN wget https://github.com/projectcalico/calicoctl/releases/download/v3.1.1/calicoctl && chmod +x calicoctl && mv calicoctl /usr/local/bin +RUN wget https://github.com/projectcalico/calicoctl/releases/download/v3.1.1/calicoctl -O /usr/local/bin/calicoctl && chmod +x /usr/local/bin/calicoctl # Netgen ADD netgen.sh /usr/local/bin/netgen diff --git a/README.md b/README.md index 0f53c46..8c379e0 100755 --- a/README.md +++ b/README.md @@ -56,7 +56,8 @@ To troubleshoot these issues, `netshoot` includes a set of powerful tools as rec curl dhcping drill - ethtool + ethtool + file fping iftop iperf @@ -64,7 +65,8 @@ To troubleshoot these issues, `netshoot` includes a set of powerful tools as rec iptables iptraf-ng iputils - ipvsadm + ipvsadm + libc6-compat liboping mtr net-snmp-tools @@ -619,6 +621,16 @@ br0 8000.0215b8e7deb3 no vxlan1 ``` +## CTOP + ctop is a free open source, simple and cross-platform top-like command-line tool for monitoring container metrics in real-time. It allows you to get an overview of metrics concerning CPU, memory, network, I/O for multiple containers and also supports inspection of a specific container. + + # To get data into ctop, you'll need to bind docker.sock into the netshoot container. +/ # docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock netshoot + +![ctop.png](img/ctop.png) + +It will display running and existed containers with useful metrics to help troubleshoot resource issues; hit "q" to exit. + ## Feedback + Contribution diff --git a/img/ctop.png b/img/ctop.png new file mode 100644 index 0000000..f698158 Binary files /dev/null and b/img/ctop.png differ