docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $ID
ID=$( docker container ls -a| grep $NAME | awk '{print $1}')
172.17.0.2
docker exec -t $ID /bin/sh -c '/sbin/ip address show eth0 |grep inet'
docker exec -t $ID /bin/sh -c '/sbin/ifconfig eth0|grep inet'
и т.п. но дольше возится форматировать inet 172.17.0.2/16 brd 172.17.255.255 scope global eth0
inet addr:172.17.0.2 Bcast:172.17.255.255 Mask:255.255.0.0
docker inspect $ID | jq '.[]|.NetworkSettings.Networks.bridge.IPAddress'
172.17.0.2
using System;
using System.Xml;
using System.Xml.XPath;
using System.Collections;
public class XPathExpressionExample
{
public static void Main()
{
XPathDocument document = new XPathDocument("b.xml");
XPathNavigator navigator = document.CreateNavigator();
XmlNamespaceManager manager = new XmlNamespaceManager(navigator.NameTable);
manager.AddNamespace("xs", "http://common");
XPathNodeIterator nodeIterator = navigator.Select("//*[local-name()='complexType']", manager);
while (nodeIterator.MoveNext()) {
XPathNavigator n = nodeIterator.Current;
Console.WriteLine(String.Format("localName:{0} name:{1}", n.LocalName, n.GetAttribute("name", "")));
}
}
}
localName:complexType name:brigade
System.Windows.Controls.RichTextBox
public void actionPerformed(ActionEvent e) {
String name = ((JButton) e.getSource()).getText()
}
https://mrcappuccino.ru/blog/post/razbor-logov-nginx
https://zametkinapolyah.ru/servera-i-protokoly/tem...