So I am attempting to run an ant build in an eclipse environment on MacOS Sierra (V 10.12.5) that will build a docker image, get the image parts and push the image to an artifactory repo.
When I go to run the build image target, the build fails with this error:
java.io.IOException: Cannot run program "docker" (in directory my/working/directory) error=2, No such file or directory
After browsing online for the past hour or so it seems like it might be a version issue but I have the latest version of docker and eclipse as well as Java SE 8 [1.8.0_144].
I have gone to the directory that supposedly doesn't exist (it does) and tried running some docker commands and they all work fine, the daemon is running and there appear to be no issues on the end.
This isn't all of the code from my ant build but this is the start of the section that it fails on:
<exec executable="docker" dir="docker" failonerror="true">
<arg value="build" />
<arg line="--build-arg label=${label}" />
Any advice on what to do, what the issue is would be much appreciated.