Git Product home page Git Product logo

Comments (5)

liqiang-fit2cloud avatar liqiang-fit2cloud commented on July 17, 2024

感谢反馈,源码部署遇到的问题自己解决即可。

from maxkb.

ouzexi avatar ouzexi commented on July 17, 2024

联系方式

[email protected]

MaxKB 版本

1.2.0

问题描述

在Dockerfile 文件中 ENTRYPOINT ["bash", "-c"] CMD [ "/usr/bin/run-maxkb.sh" ]

到构建镜像的时候到run-maxkb.sh文件中时以下步骤时 #!/bin/bash 出现无法运行该命令的错误。

重现步骤

直接构建源码镜像

期待的正确结果

应该在 到构建镜像的时候到run-maxkb.sh文件中的 #!/usr/bin/bash

修改为: #!/usr/bin/bash

相关日志输出

bash: line 1: /usr/bin/run-maxkb.sh: cannot execute: required file not found

附加信息

No response

楼主,这个问题我也遇到了,按理来说bin链接到/usr/bin,他们的内容是一样的,不明白为什么找不到文件呢?

from maxkb.

yanxiaochen avatar yanxiaochen commented on July 17, 2024

因为在Dockerfile 文件中 是指定到"/usr/bin/run-maxkb.sh " /usr 下面的
而且在源码里面的 run-maxkb.sh 文件中 是 #!/bin/bash 只需要改为 #!/usr/bin/bash 即可解决找不到路径的问题

from maxkb.

yanxiaochen avatar yanxiaochen commented on July 17, 2024

我上面最开始提的打错了

from maxkb.

ouzexi avatar ouzexi commented on July 17, 2024

因为在Dockerfile 文件中 是指定到"/usr/bin/run-maxkb.sh " /usr 下面的 而且在源码里面的 run-maxkb.sh 文件中 是 #!/bin/bash 只需要改为 #!/usr/bin/bash 即可解决找不到路径的问题

对的,我知道是将 #!/bin/bash 改为 #!/usr/bin/bash,但是在容器内,bin是链接到usr/bin目录的,所以它们的目录内容应该是一样才对的(比如:因为/bin -> /usr/bin,所以/usr/bin目录存在sh文件,那么/bin才能获取到该文件),不明白为什么会提示获取不到文件。

from maxkb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.