Skip to content
show which veth interface is associated with each container
Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
debug-pod.yaml
docker-veth.sh

README.md

Find veth interface of docker containers

This repository contains a script for finding the veth interfaces of every container. For example you might see a lot of veth interfaces on a K8s node/ docker host, but you can't figure out which namespace or container the veth interface is associated with. This info can be helpful while debugging. The script docker-veth.sh can be run from a privileged container on the same node.

Usage on K8s

Run a privileged pod using the samos123/docker-toolbox image that already contains this script and other useful troubleshooting tools.

kubectl apply -f debug-pod.yaml
kubectl exec debug-pod -t -i bash
docker-veth.sh
You can’t perform that action at this time.