I am trying to run a .ebextantions/01-main.config
with below command. In shell check, it looks fine. But, while executing same getting below error:
container_commands:
01_cron_job:
command: docker exec -d -w /var/www/kiu/central "$(docker ps -aqf \"name=kiu-central\")" sh -c \"cat .ebextensions/kuicron.txt > /etc/cron.d/kuicron && chmod 644 /etc/cron.d/kuicron\"
leader_only: true
Command failed on instance. Return code: 1 Output: Error response from daemon: Invalid filter '"name'
Error: No such container: sh.