I want to set up a swarm cluster consisting of 2 nodes, but when I run the code:
docker-machine create -d virtualbox --swarm --swarm-master --swarm-discovery token://<clusterid>
in order to create a swarm master, I receive the following message:
-bash: /usr/local/bin/docker-machine: Permission denied
Trying the same code with sudo also produces:
sudo: docker-machine: command not found
How do I fix this?
Does:
Fix it?
(Might need
sudo
)