docker-itmonitoring icon indicating copy to clipboard operation
docker-itmonitoring copied to clipboard

universal forwarder: scripts docker_service.sh contains invalid commands

Open ghost opened this issue 7 years ago • 0 comments

I am pulling splunk/universalforwarder:7.0.0-monitor

and this is the content of the docker_service.sh script (the docker service ls command at the end of the file)


#!/bin/bash

DOCKER_BIN=$(dirname "$0")/docker "$DOCKER_BIN" service ls
| tail -n +2
| sed -e "s/,/ /g"
| sed -E "s/\s\s+/,/g"

docker service ls | tail -n +2 | sed -e "s/ /,/g"


ghost avatar Mar 07 '18 12:03 ghost