权限被拒绝:docker-machine创建 [英] Permission denied: docker-machine create

查看:614
本文介绍了权限被拒绝:docker-machine创建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设置一个由2个节点组成的群集,但是当我运行代码时:

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

为了创建一个群主,我收到以下消息:


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


使用sudo尝试相同的代码还会产生:


sudo:docker-machine:command not found


如何解决?

解决方案

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

修复它?



(可能需要 sudo


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:

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

Fix it?

(Might need sudo)

这篇关于权限被拒绝:docker-machine创建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆