Permission denied: docker-machine create -


i want set swarm cluster consisting of 2 nodes, when run code:

docker-machine create -d virtualbox --swarm --swarm-master --swarm-discovery token://<clusterid>  

in order create swarm master, receive following message:

-bash: /usr/local/bin/docker-machine: permission denied

trying same code sudo produces:

sudo: docker-machine: command not found

how fix this?

does:

chmod +x /usr/local/bin/docker-machine 

fix it?

(might need sudo)


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -