启动 wolkenkit 失败

Failed to start wolkenkit

我尝试 运行 wolkenkit (v3.1.0) 在 Ubuntu 18.04 上使用 nodejs v. node v10.13.0 使用官方 tutorial,但当我尝试在示例聊天应用程序目录中启动它时框架会报错:

  $ wolkenkit start --verbose
  Starting the application...
  Failed to reach Docker server.
  Failed to start the application.
  Docker not reachable.
  DockerNotReachable: Docker not reachable.
    at Object._callee$ (~/.nvm/versions/node/v10.13.0/lib/node_modules/wolkenkit/dist/docker/ping.js:98:19)
    at tryCatch (~/.nvm/versions/node/v10.13.0/lib/node_modules/wolkenkit/node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:62:40)
    at Generator.invoke [as _invoke] (~/.nvm/versions/node/v10.13.0/lib/node_modules/wolkenkit/node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:288:22)
    at Generator.prototype.(anonymous function) [as throw] (~/.nvm/versions/node/v10.13.0/lib/node_modules/wolkenkit/node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:114:21)
    at asyncGeneratorStep (~/.nvm/versions/node/v10.13.0/lib/node_modules/wolkenkit/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
    at _throw (~/.nvm/versions/node/v10.13.0/lib/node_modules/wolkenkit/node_modules/@babel/runtime/helpers/asyncToGenerator.js:29:9)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Docker 设置和 运行ning:

$ sudo service docker status
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-07-09 18:47:51 CEST; 9min ago
     Docs: https://docs.docker.com
 Main PID: 11342 (dockerd)
    Tasks: 22
   CGroup: /system.slice/docker.service
           └─11342 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock

以及所需的版本:

$ docker --version
Docker version 18.09.7, build 2d0083d

这里有什么我忘了的吗?

感谢评论,我发现如果没有 root 权限,wolkenkit 所需的 docker version --format "{{json .}} 不会 运行 正确。

使用 sudo wolkenkit start 调用 wolkenkit 解决了这个问题。