ContributionsMost RecentMost LikesSolutionsRe: Trying to restart docker images from ReadyAPI Groovy script Thanks Karel - got it working!! The issue was that I needed a proper key-pair and then my Groovy script had to be of the form (splitting it in the following fashion worked): def dockerRestartTest = "ssh username@hostname docker restart " def dockerProc = dockerRestartTest.execute() Re: Trying to restart docker images from ReadyAPI Groovy script This should be possible, correct? A Groovy script, running within a ReadyAPI test suite, ought to be able to SSH into a server and execute a 'docker restart' command I would think. Any ideas how to implement this? Re: Trying to restart docker images from ReadyAPI Groovy script I've tried that suggestion (>which docker gives: /usr/bin/docker) to no avail. I'm able to run ReadyAPI scripts against that server if the Groovy test step is disabled, so it appears to be directly Docker related. Manually, I'm able to execute the docker cmd on that server just fine. At a loss... Re: Trying to restart docker images from ReadyAPI Groovy script def dockerTemp = 'docker restart query'.execute() // def dockerRestartTest = 'docker restart ' + s // def dockerProc = dockerRestartTest.execute() I've tried both versions of the offensive '.execute()' above (the commented 2 lines are the version that works in intelliJ) - both versions yield this in ReadyAPI: ERROR: An error occurred [java.io.IOException: Cannot run program "docker": error=2, No such file or directory], see error log for details. I'm able to run docker within a terminal and within intelliJ. Trying to restart docker images from ReadyAPI Groovy script Is it possible to have a Groovy script within a ReadyAPI test suite that will restart docker image(s)? I have an existing Groovy script that works but copying/pasting into a ReadyAPI Groovy script test step doesn't seem to work. Am I expecting functionality from ReadyAPI that isn't supported with Groovy? If it's possible to attain this, how is it done - not finding much information online. Solved