Skip to content

Commit

Permalink
Merge pull request nicolaka#24 from nicolaka/edge
Browse files Browse the repository at this point in the history
Edge
  • Loading branch information
Nicola Kabar authored Nov 26, 2018
2 parents cb1afbe + 2842a5b commit d698c5b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand All @@ -16,6 +16,7 @@ RUN set -ex \
dhcping \
drill \
ethtool \
file\
fping \
iftop \
iperf \
Expand All @@ -24,6 +25,7 @@ RUN set -ex \
iptraf-ng \
iputils \
ipvsadm \
libc6-compat \
liboping \
mtr \
net-snmp-tools \
Expand All @@ -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
Expand Down
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,17 @@ To troubleshoot these issues, `netshoot` includes a set of powerful tools as rec
curl
dhcping
drill
ethtool
ethtool
file
fping
iftop
iperf
iproute2
iptables
iptraf-ng
iputils
ipvsadm
ipvsadm
libc6-compat
liboping
mtr
net-snmp-tools
Expand Down Expand Up @@ -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

Expand Down
Binary file added img/ctop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d698c5b

Please sign in to comment.