Here’s my situation;
We have started using an Octopus linux worker with docker to run deployment steps in parallel, with great success. However, despite calling --rm in our docker runs, if the deployment fails, the container will hang around. We had a number of failed deployments last week, around 80, so there were a lot of stuck containers.
Through some googling, I have found a command that works flawlessly:
docker container stop $(docker container ls -q --filter name=C-Deployments*). I can run this through the Task Console, targeting the Worker from there. But, I can’t seem to do this in either a process Step, or in a Runbook. What, if anything, am I missing? How can I get a process step or a Runbook to target the Default Worker Pool?