#!/bin/bash echo "Content-Type: application/json" echo "" docker ps --format json --no-trunc \ | sed ' $! s/$/,/ 1 i [ $ a ] '