如何 运行 docker 安装 HyperLedger Playground?
How can I run docker for HyperLedger Playground installation?
我是 hyper ledger 系列的新手,当我从文档安装开发环境时 https://hyperledger.github.io/composer/latest/installing/development-tools.html
我卡在了第 4 步:安装 Hyperledger Fabric:
顺便说一句,我在 windows 中使用 Ubuntu 18.04LTS 终端(不是 bash,来自 windows 商店)
它安装的作曲家的版本是 0.20.8
已成功安装所有先决条件。
它显示“Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
” 我尝试 运行ning docker 使用以下命令:
$ sudo systemctl start docker
$ sudo service docker start
但无济于事!!!
harsha@LAPTOP-UDDDOD20:~/fabric-dev-servers$ cd ~/fabric-dev-servers
harsha@LAPTOP-UDDDOD20:~/fabric-dev-servers$ export FABRIC_VERSION=hlfv12
harsha@LAPTOP-UDDDOD20:~/fabric-dev-servers$ ./downloadFabric.sh
Development only script for Hyperledger Fabric control
Running 'downloadFabric.sh'
FABRIC_VERSION is set to 'hlfv12'
FABRIC_START_TIMEOUT is unset, assuming 15 (seconds)
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
'''试过了运行Docker
harsha@LAPTOP-UDDDOD20:~/fabric-dev-servers$ sudo systemctl start docker
System has not been booted with systemd as init system (PID 1). Can't operate.
harsha@LAPTOP-UDDDOD20:~/fabric-dev-servers$ sudo service docker start
* Starting Docker: docker [ OK ]
harsha@LAPTOP-UDDDOD20:~/fabric-dev-servers$ sudo service docker status
* Docker is not running
harsha@LAPTOP-UDDDOD20:~/fabric-dev-servers$
如何才能在我的机器上本地成功 运行 docker 服务和 运行 hyperledger playground?
您无法 运行 docker 轻松地进入 WSL(即您安装的 windows 商店中的 ubuntu 版本)。
原因是您正在使用的 linux 的 windows 子系统不是具有 linux 内核的 linux 的真实版本。这是一个聪明的软件,可以动态地将 linux api 转换为 windows api。 Docker 需要真正的 linux 内核才能工作。
我建议您使用诸如 windows hyper-v、vmware 或 virtualbox 之类的管理程序,然后将 linux 发行版安装到虚拟机中并使用它。
我是 hyper ledger 系列的新手,当我从文档安装开发环境时 https://hyperledger.github.io/composer/latest/installing/development-tools.html
我卡在了第 4 步:安装 Hyperledger Fabric: 顺便说一句,我在 windows 中使用 Ubuntu 18.04LTS 终端(不是 bash,来自 windows 商店) 它安装的作曲家的版本是 0.20.8 已成功安装所有先决条件。
它显示“Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
” 我尝试 运行ning docker 使用以下命令:
$ sudo systemctl start docker
$ sudo service docker start
但无济于事!!!
harsha@LAPTOP-UDDDOD20:~/fabric-dev-servers$ cd ~/fabric-dev-servers
harsha@LAPTOP-UDDDOD20:~/fabric-dev-servers$ export FABRIC_VERSION=hlfv12
harsha@LAPTOP-UDDDOD20:~/fabric-dev-servers$ ./downloadFabric.sh
Development only script for Hyperledger Fabric control
Running 'downloadFabric.sh'
FABRIC_VERSION is set to 'hlfv12'
FABRIC_START_TIMEOUT is unset, assuming 15 (seconds)
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
'''试过了运行Docker
harsha@LAPTOP-UDDDOD20:~/fabric-dev-servers$ sudo systemctl start docker
System has not been booted with systemd as init system (PID 1). Can't operate.
harsha@LAPTOP-UDDDOD20:~/fabric-dev-servers$ sudo service docker start
* Starting Docker: docker [ OK ]
harsha@LAPTOP-UDDDOD20:~/fabric-dev-servers$ sudo service docker status
* Docker is not running
harsha@LAPTOP-UDDDOD20:~/fabric-dev-servers$
如何才能在我的机器上本地成功 运行 docker 服务和 运行 hyperledger playground?
您无法 运行 docker 轻松地进入 WSL(即您安装的 windows 商店中的 ubuntu 版本)。
原因是您正在使用的 linux 的 windows 子系统不是具有 linux 内核的 linux 的真实版本。这是一个聪明的软件,可以动态地将 linux api 转换为 windows api。 Docker 需要真正的 linux 内核才能工作。
我建议您使用诸如 windows hyper-v、vmware 或 virtualbox 之类的管理程序,然后将 linux 发行版安装到虚拟机中并使用它。