Skip to content

Instantly share code, notes, and snippets.

View thanosme's full-sized avatar

Thanos Manousos thanosme

View GitHub Profile
@thanosme
thanosme / docker-int.sh
Created April 11, 2017 09:20
Get the network interface for a container based on it's name, or discover to which container a veth belongs to.
#! /bin/bash
# Name of the container.
# E.g. CONTAINER=grafana
CONTAINER=
INDEX() {
for i in $(/bin/ls /sys/class/net/veth*/ifindex)
do
echo "$i $(cat $i)"

Keybase proof

I hereby claim:

  • I am thanosme on github.
  • I am thanosme (https://keybase.io/thanosme) on keybase.
  • I have a public key whose fingerprint is 3D74 B7BA CB9A 1D62 610D 9A80 20A1 76FE 761C 9A8D

To claim this, I am signing this object: