go-ethereum - geth - puppeth - ethstat远程服务器:docker:command not found

时间:2017-11-15 22:01:58

标签: ethereum go-ethereum geth

我尝试使用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"

以下是我的问题:

  1. 是否有任何文档/教程描述如何正确设置此远程服务器。或者仅仅是在puppeth上?
  2. 我是否可以将localhost用作"远程服务器地址"
  3. 有关未找到docker命令的任何想法(已安装并正在运行,我可以在终端中使用它)。

2 个答案:

答案 0 :(得分:0)

这就是我所做的。

  1. 对于docker,您必须使用docker-compose二进制文件。你可以找到它here

  2. 此外,您必须确保本地主机上正在运行ssh服务器,并且已生成密钥。

  3. 我没有找到任何关于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/environmentFile(/opt/plesk/php/7.2/bin/php) is not within the allowed path(s): (/var/www/vhosts/rescuefirst.com/:/tmp/:/mnt/ Please Help 中的内容匹配。