I have a bash script that is custom tool for running docker containers. I can't show entire script. In the following scenario:
local dockerArgs=(
"--restart=on-failure:5"
"--memory 512m"
"--cpu-shares 1024"
"--pids-limit 100"
"--health-cmd='stat /etc/passwd'"
"--security-opt=no-new-privileges"
"-v /containers/logs/:/containers/logs/"
"-v /etc/conf/prometheus/:/etc/conf/prometheus/"
)
, all the params are processed correctly except the health-cmd param. It the only one with the single-quoted value. The script fails due to the above syntax for health-cmd. Grateful for any ideas to fix. Thanks