wiki:docker_commands
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| wiki:docker_commands [2024/01/08 13:53] – [Remove images older than 2 weeks] antisa | wiki:docker_commands [2025/11/04 10:00] (current) – add Print IPs for all containers antisa | ||
|---|---|---|---|
| Line 46: | Line 46: | ||
| The second command removes dangling build cache which will reclaim the disk space after image deletion. | The second command removes dangling build cache which will reclaim the disk space after image deletion. | ||
| + | |||
| + | ===== Print IPs for all containers ===== | ||
| + | |||
| + | docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Image}}" | ||
| + | | tail -n +2 \ | ||
| + | | while read -r id name image; do | ||
| + | ip=$(docker inspect --format=' | ||
| + | printf " | ||
| + | done | ||
| + | |||
wiki/docker_commands.txt · Last modified: by antisa
