use bash based on env, instead of hard coding location
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
docker ps --format='{{json .Names}}' | xargs docker inspect -f '{{range .NetworkSettings.Networks}}{{json .}}{{end}}' | jq -r '.IPAddress + " " + .Aliases[0]'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user