Docker
Basics
Get IP of all containers:
docker inspect -f '{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}} {{end}}' $(docker ps -aq)
Docker Networks
Inspect
Engine API
Version
Config
$ cat /etc/docker/daemon.json
{
... skipped ...
"hosts": [
"fd://",
"unix:///var/run/docker.sock",
"tcp://0.0.0.0:2376"
],
... skipped ...
}
$ netstat -plnt | grep 2376
tcp6 0 0 :::2376 :::* LISTEN 5249/dockerd
Test