Docker ubuntu container network utilities

Docker

Senario

When you need to debug the container you may need some network tools.

1
docker exec -it your_container_name bash

Packages

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
apt-get update
apt-get install -y iputils-ping telnet dnsutils net-tools inetutils-traceroute

# You must run update before your installation
apt-get update

# ping google.com
apt-get install iputils-ping

# telnet google.com 80
apt-get install telnet

# nslookup google.com
# host google.com
apt-get install dnsutils

# netstat, arp
apt-get install net-tools

# traceroute google.com
apt-get install inetutils-traceroute