Hello,

I am trying to execute a command in a docker container with new docker plugin but it doesn't work.

This is the code that I am trying to execute:

rule: my test
do:

  • docker_task:
    server: cla-default-node-1
    use: "Container"
    task: "exec"
    container_name: "youthful_mclean"
    command_parameters: "pwd"

This is the exit:

Launching command: docker exec youthful_mclean pwd
STARTING remote script @localhost: 'docker exec youthful_mclean pwd '
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
Error running command docker exec youthful_mclean pwd
Error in rulebook (run): Error running task * docker_task *: Error: Error running task * Docker Task *: Error running command docker exec youthful_mclean pwd

at [anon] (eval:1) preventsyield
at [anon] () native strict preventsyield
at [anon] (eval:89) strict
at [anon] (/opt/clarive/plugins/cla-docker-plugin/init/docker-task.js:117) strict preventsyield at (eval 5) line 1956.

Can you help me?

Thanks.