'getting bash: docker: command not found on semaphore

when I run the script on my localhost

docker build -t ID.dkr.ecr.REGION.amazonaws.com/URL:"$VERSION" -f route/Dockerfile .

everything works fine.

when this script runs on semaphore I get the error bash: docker: command not found

in the docs of semaphore it is mentioned that docker comes preinstalled so I don't understand the issue



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source