gpt4 book ai didi

docker - 启动 wolkenkit 失败

转载 作者:行者123 更新时间:2023-12-02 19:03:07 25 4
gpt4 key购买 nike

我尝试使用 nodejs v. node v10.13.0 在 Ubuntu 18.04 上运行 wolkenkit (v3.1.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 已设置并运行:
$ 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

我在这里忘记了什么吗?

最佳答案

感谢评论,我发现 docker version --format "{{json .}} wolkenkit 所需的在没有 root 权限的情况下无法正常运行。

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

关于docker - 启动 wolkenkit 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56957479/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com