$ [sudo] docker inspect --format '{{ .NetworkSettings.IPAddress }}' CONTAINER_ID
Add this function to ~/.bashrc
| #!/bin/bash | |
| # | |
| # Converts LDIF data to CSV. | |
| # Doesn't handle comments very well. Use -LLL with ldapsearch to remove them. | |
| # | |
| # 2010-03-07 | |
| # dsimmons@squiz.co.uk | |
| # | |
| # Show usage if we don't have the right params |