Как получить сетевые интерфейсы в Linux моих докер-контейнеров [закрыто] ⇐ Linux
-
Anonymous
Как получить сетевые интерфейсы в Linux моих докер-контейнеров [закрыто]
i launch some docker nginx containers liket that :
docker run --rm -d nginx docker run --rm -d nginx docker run --rm -d nginx then i get the ip adresses of my containers, by doing..
docker inspect 5d3 | grep IPAd it gives me ip address : 172.17.0.2 docker inspect 6r8 | grep IPAd it gives me ip address : 172.17.0.3 docker inspect 7h9 | grep IPAd it gives me ip address : 172.17.0.4 My question is : is there a linux command to see my network interfaces ? I mean.. : 172.17.0.2 + 172.17.0.3 + 172.17.0.4
Thanks by advance.
Источник: https://stackoverflow.com/questions/780 ... containers
i launch some docker nginx containers liket that :
docker run --rm -d nginx docker run --rm -d nginx docker run --rm -d nginx then i get the ip adresses of my containers, by doing..
docker inspect 5d3 | grep IPAd it gives me ip address : 172.17.0.2 docker inspect 6r8 | grep IPAd it gives me ip address : 172.17.0.3 docker inspect 7h9 | grep IPAd it gives me ip address : 172.17.0.4 My question is : is there a linux command to see my network interfaces ? I mean.. : 172.17.0.2 + 172.17.0.3 + 172.17.0.4
Thanks by advance.
Источник: https://stackoverflow.com/questions/780 ... containers
Мобильная версия