hobo list services 1

hobo list services



docker ps -q|xargs docker inspect --format='{{.Name}} {{.NetworkSettings.IPAddress}}'

Here is what the above code is Doing:
1. docker ps -q returns the container IDs of all running containers.
2. xargs docker inspect –format='{{.Name}} {{.NetworkSettings.IPAddress}}’
takes the container IDs and runs docker inspect on each one, returning the
container name and IP address.

Similar Posts