We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed663e8 commit 49ac24eCopy full SHA for 49ac24e
1 file changed
startupscript/butane/machine-stats-exporter.sh
@@ -50,7 +50,7 @@ containers_json=$(
50
51
# Get state from docker inspect for all containers.
52
# .Id is the full 64-char ID; truncate to 12 to match docker stats.
53
- state=$(docker inspect $(docker ps -aq) 2>/dev/null \
+ state=$(docker ps -aq | xargs docker inspect 2>/dev/null \
54
| jq -c '[.[] | {
55
id: .Id[:12],
56
name: .Name,
0 commit comments