Permission denied: docker-machine create

2019-08-10 08:11发布

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?

标签: docker
1条回答
我命由我不由天
2楼-- · 2019-08-10 08:41

Does:

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

Fix it?

(Might need sudo)

查看更多
登录 后发表回答