Docker Community Forums

Share and learn in the Docker community.

How do I run compiled Docker-Machine from source?

I built Docker-Machine from source using GOPATH. Based on the fact that I got no errors
during compilation I assume it’s compiled. When I run docker-machine --version it errors out
with no such command. I headed over to /sbin and there’s no docker-machine.

Does it mean that I need to create a symlink for it ?

To compile a program doesn’t mean it is installed. If you look at the installation instructions for Docker Machine it is recommended to move the binary to /usr/local/bin/docker-machine. So just take your compiled file and copy it to this destination.

2 Likes

I can’t see a way to mark your answer as a solution. Thank you tekki.