Skip to content

Failed to build by docker #6420

Closed
Closed

Description

@BrikeX

Running the following script:

mkdir lightgbm-docker
cd lightgbm-docker
wget https://raw.githubusercontent.com/Microsoft/LightGBM/master/docker/dockerfile-cli
docker build \
    -t lightgbm-cli \
    -f dockerfile-cli \
    .

then it reports:

ERROR: failed to solve: process “/bin/sh -c git clone --recursive --branch stable --depth 1 https://github.com/Microsoft/LightGBM && cd ./Lightgbm && cmake -B build -S . && cmake --build build -j4 && cmake --install build && cd “${HOME}” && rm -rf LightGBM” did not complete successfully: exit code: 2

It seems has some changes in the commit:
4332b9d

Activity

  1. jameslamb commented on Apr 17, 2024

    @jameslamb
    Member

    Thanks for the report.

    Are you interested in investigating this and proposing a fix?

  2. BrikeX commented on Apr 30, 2024

    @BrikeX
    Author

    @jameslamb Has this commit #6426 fixed this bug? I found that it could be fixed if I change the Ubuntu version to 22.04 and change the directory to "./LightGBM".

  3. jameslamb commented on Apr 30, 2024

    @jameslamb
    Member

    It will, yes, but it isn't merged yet.

  4. added a commit that references this issue on May 1, 2024
    d7fcb3c
  5. github-actions commented on May 7, 2025

    @github-actions
    Contributor

    This issue has been automatically locked since there has not been any recent activity since it was closed.
    To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

  6. locked as resolved and limited conversation to collaborators on May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions