docker ps -q | xargs -n 1 docker inspect --format '{{ .Name }}: {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'
输出:
/mysql-8.4 => 172.17.0.6
/nginx-1.26 => 172.17.0.3
/golang-1.22 => 172.17.0.2
/redis-7.4 => 172.17.0.4
/php-fpm-8.3 => 172.17.0.5