summaryrefslogtreecommitdiff
path: root/docker-status.sh
diff options
context:
space:
mode:
authorErich Eckner <erich.eckner.ext@bestsecret.com>2024-08-19 19:32:36 +0200
committerErich Eckner <erich.eckner.ext@bestsecret.com>2024-08-19 19:32:36 +0200
commit7b5ea21241543b0f75d525888da87f763883b1c7 (patch)
treec4f1b8be8b43d91be302f6cc54e6c32585b5b54b /docker-status.sh
parentd4cfa5367ac30cee46b43304c70a9d1e4c03c06d (diff)
downloaddocker-status-7b5ea21241543b0f75d525888da87f763883b1c7.tar.xz
geht erst mal
Diffstat (limited to 'docker-status.sh')
-rwxr-xr-xdocker-status.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/docker-status.sh b/docker-status.sh
index c990645..461ed44 100755
--- a/docker-status.sh
+++ b/docker-status.sh
@@ -2,9 +2,9 @@
echo "Content-Type: application/json"
echo ""
+printf '[\n'
docker ps --format json --no-trunc \
| sed '
$! s/$/,/
- 1 i [
- $ a ]
'
+printf ']\n'