我尝试使用Puppeth设置私有以太坊测试网络(如Péter Szilágyi demoed in Ethereum devcon three 2017)。我在macbook pro(macOS Sierra)上运行它。
当我尝试设置ethstat网络组件时,我得到一个" docker配置错误:bash:docker:command not found" 错误。我有docker运行,我可以在终端中使用它,例如码头工人
以下是我采取的步骤:
What would you like to do? (default = stats)
1. Show network stats
2. Manage existing genesis
3. Track new remote server
4. Deploy network components
> 4
What would you like to deploy? (recommended order)
1. Ethstats - Network monitoring tool
2. Bootnode - Entry point of the network
3. Sealer - Full node minting new blocks
4. Wallet - Browser wallet for quick sends (todo)
5. Faucet - Crypto faucet to give away funds
6. Dashboard - Website listing above web-services
> 1
Which server do you want to interact with?
1. Connect another server
> 1
Please enter remote server's address:
> localhost
DEBUG[11-15|22:46:49] Attempting to establish SSH connection server=localhost
WARN [11-15|22:46:49] Bad SSH key, falling back to passwords path=/Users/xxx/.ssh/id_rsa err="ssh: cannot decode encrypted private keys"
The authenticity of host 'localhost:22 ([::1]:22)' can't be established.
SSH key fingerprint is xxx [MD5]
Are you sure you want to continue connecting (yes/no)? yes
What's the login password for xxx at localhost:22? (won't be echoed)
>
DEBUG[11-15|22:47:11] Verifying if docker is available server=localhost
ERROR[11-15|22:47:11] Server not ready for puppeth err="docker configured incorrectly: bash: docker: command not found\n"
以下是我的问题:
答案 0 :(得分:0)
这就是我所做的。
对于docker,您必须使用docker-compose二进制文件。你可以找到它here。
此外,您必须确保本地主机上正在运行ssh服务器,并且已生成密钥。
我没有找到任何关于puppeth的文件。
答案 1 :(得分:0)
我想我找到了这个问题的根本原因。 SSH守护程序使用默认路径进行编译。如果/usr/local/bin
到具有特定命令的机器(shell除外),则会获得该默认路径。这不包括docker
,例如,/etc/ssh/sshd_config
存在于我的案例中。
我在这里找到了解决方案:https://serverfault.com/a/585075:
PermitUserEnvironment yes
并确保其中包含sudo
(您需要使用~/.ssh/environment
进行修改)
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
,其中包含您想要的路径,在我的情况下:
ssh localhost env
现在运行PATH
时,您会看到~/.ssh/environment
与File(/opt/plesk/php/7.2/bin/php) is not within the allowed path(s): (/var/www/vhosts/rescuefirst.com/:/tmp/:/mnt/
Please Help
中的内容匹配。