конкретнее, docker inspect с выводом имени контейнера и ip
[
{
"Id": "acb592fe0313bdc43a39088a9377b959eacceea27187a436548eb8d854349873",
"Created": "2018-10-30T13:12:37.246938833Z",
"Path": "/bin/sh",
"Args": [
"-c",
"/bin/bash -c '$APP/run'"
],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 9425,
"ExitCode": 0,
"Error": "",
"StartedAt": "2018-10-30T13:12:37.914852911Z",
"FinishedAt": "0001-01-01T00:00:00Z"
},
"Image": "sha256:c3c35511568f7bb2b3bb91bbea1000f5f1f02d418799c076c068a9178acfb013",
"ResolvConfPath": "/var/lib/docker/containers/acb592fe0313bdc43a39088a9377b959eacceea27187a436548eb8d854349873/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/acb592fe0313bdc43a39088a9377b959eacceea27187a436548eb8d854349873/hostname",
"HostsPath": "/var/lib/docker/containers/acb592fe0313bdc43a39088a9377b959eacceea27187a436548eb8d854349873/hosts",
"LogPath": "/var/lib/docker/containers/acb592fe0313bdc43a39088a9377b959eacceea27187a436548eb8d854349873/acb592fe0313bdc43a39088a9377b959eacceea27187a436548eb8d854349873-json.log",
"Name": "/eu_cdr_api",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/etc/localtime:/etc/localtime:ro"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "default",
"PortBindings": {
"9900/tcp": [
{
"HostIp": "",
"HostPort": "9900"
}
]
},
"RestartPolicy": {
"Name": "always",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": null,
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "shareable",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": [],
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"DeviceCgroupRules": null,
"DiskQuota": 0,
"KernelMemory": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": false,
"PidsLimit": 0,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"MaskedPaths": [
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
конкретнее, docker inspect с выводом имени контейнера и ip
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware"
],
"ReadonlyPaths": [
"/proc/asound",
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
]
},
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/b30b19f37169739d0163a8d2ec9248bbcba4256161c143270ba9c919b7423725-init/diff:/var/lib/docker/overlay2/d8ab4cc7e2d2cb133939ec7cf1a4c380e8a5cda507aa9ae78e2d1d30374480b6/diff:/var/lib/docker/overlay2/1e10e72713fc7d176a46b747a6bb02f312124443bb605ba43784e73234425ccb/diff:/var/lib/docker/overlay2/e0031f1f919bd01c1ccea616b5a0f0478d0e34bdd82dad83ef6b76466addfd48/diff:/var/lib/docker/overlay2/29e51ab97640cfe50802df0737bfe9c041ecaef6e9c1664d6df8f45dc09bb930/diff:/var/lib/docker/overlay2/61f9348164e6d20efe64608d39c63504eeafab691ffe8514da55eac63650fe5a/diff:/var/lib/docker/overlay2/9038b82d28f4f51b4f4d27ffde4562bda058d0dff2f6da32297b91e25e6e38be/diff",
"MergedDir": "/var/lib/docker/overlay2/b30b19f37169739d0163a8d2ec9248bbcba4256161c143270ba9c919b7423725/merged",
"UpperDir": "/var/lib/docker/overlay2/b30b19f37169739d0163a8d2ec9248bbcba4256161c143270ba9c919b7423725/diff",
"WorkDir": "/var/lib/docker/overlay2/b30b19f37169739d0163a8d2ec9248bbcba4256161c143270ba9c919b7423725/work"
},
"Name": "overlay2"
},
"Mounts": [
{
"Type": "bind",
"Source": "/etc/localtime",
"Destination": "/etc/localtime",
"Mode": "ro",
"RW": false,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "eu_cdr_api_1",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"9900/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"param=test_node_1.toml",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"GOPATH=/cdrapi/go",
"LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib/",
"APP=/cdrapi"
],
"Cmd": null,
"ArgsEscaped": true,
"Image": "eu_cdr_api:aat",
"Volumes": null,
"WorkingDir": "/cdrapi",
"Entrypoint": [
"/bin/sh",
"-c",
"/bin/bash -c '$APP/run'"
],
"OnBuild": null,
"Labels": {
"org.label-schema.schema-version": "= 1.0 org.label-schema.name=CentOS Base Image org.label-schema.vendor=CentOS org.label-schema.license=GPLv2 org.label-schema.build-date=20180402"
}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "e3e583a78a073ac2f60e30efaa3dfc64c6dc226e5f0b80b7c5f16219217dca3a",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"9900/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "9900"
}
]
},
"SandboxKey": "/var/run/docker/netns/e3e583a78a07",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "c66d7ace46801b620411ba8398881f44c37d881a7a4108e65b74b9e4f6229a24",
"Gateway": "192.168.0.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "192.168.0.2",
конкретнее, docker inspect с выводом имени контейнера и ip
"IPPrefixLen": 20,
"IPv6Gateway": "",
"MacAddress": "02:42:c0:a8:00:02",
"Networks": {
"bridge": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "303ecf04a20a8a310b92ab13bdc2726ef7b5a16b5c0e4bff9343de862a372d16",
"EndpointID": "c66d7ace46801b620411ba8398881f44c37d881a7a4108e65b74b9e4f6229a24",
"Gateway": "192.168.0.1",
"IPAddress": "192.168.0.2",
"IPPrefixLen": 20,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:c0:a8:00:02",
"DriverOpts": null
}
}
}
}
]