Pylxd
Jump to navigation
Jump to search
Snippets
Get IP addresses on container
#!/usr/bin/env python3 from pylxd import Client client = Client() for p in client.containers.all(): print(p.name, p.state().network['eth0']['addresses'][0]['address'])