docker-itmonitoring
docker-itmonitoring copied to clipboard
universal forwarder: scripts docker_service.sh contains invalid commands
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"