On 04/11/2016 10:54 PM, Arjan Schaaf wrote:
> I'm trying to setup gitlab-ci-multi-runner with docker-machine on a
> Amazon Linux instance (CentOS).
> I've installed both docker-machine and gitlab-ci according to the
> installation guide.
> 
> 'which docker-machine'  returns '/usr/local/bin/docker-machine'
> 
> But when I check the syslog I noticed the following error:
> 
> gitlab-runner[3146]: Failed to update executor docker+machine for
> 19f8ef83 exec: "docker-machine": executable file not found in $PATH
> 

CentOS doesn't have /usr/local/bin in PATH.

Edit /etc/sudoers with visudo and add /usr/local/bin to secure_path, like:

Defaults    secure_path = /sbin:/bin:/usr/sbin:/usr/bin:usr/local/bin

---

Otherwise you'll have to export it in Runner's .bashrc:

export PATH=PATH:/usr/local/bin


-- 
Blog: http://axilleas.me

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/570CA655.6030006%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to