Run below command to get iflink number which maps to ifIndex. docker exec -it <containerId> cat /sys/class/net/eth0/iflink