NVIDIA / NVIDIA/DCGM

Facing unknown docker flag --compress while using build.sh

Open
#166 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
792
Forks
109
PR merge metrics
No merged PRs in 30d

Description

I am using latest docker version :

Version: 24.0.5
API version: 1.43
Go version: go1.20.3
Git commit: 24.0.5-0ubuntu1~22.04.1

Getting error :

DCGM/dcgmbuild$ ./build.sh -r --deb
+++ realpath ./build.sh
++ dirname /home/sdp/prems/DCGM/dcgmbuild/build.sh

  • DIR=/home/sdp/prems/DCGM/dcgmbuild
  • BASE_DOCKERFILE=base.dockerfile
  • DCGMBUILD_IMAGE_NAME=dcgmbuild
    ++ sha256sum base.dockerfile
    ++ head -c6
  • DCGMBUILD_BASE_VERSION=gcc11-cc22f0
  • DCGMBUILD_BASE_TAG=dcgmbuild:base-gcc11-cc22f0
  • DOCKER_BUILD_OPTIONS='--platform=linux/amd64 --load --network=host'
  • default_targets=("x86_64" "aarch64" "powerpc64le")
  • [[ 2 -gt 0 ]]
  • targets=("$@")
  • echo 'Building for targets: -r' --deb
    Building for targets: -r --deb
  • for target in "${targets[@]}"
  • CURRENT_BASE_TAG=dcgmbuild:base-gcc11-cc22f0--r
  • CURRENT_CHILD_TAG=dcgmbuild--r
  • image_exists dcgmbuild:base-gcc11-cc22f0--r
  • docker inspect --type=image --format=ignore dcgmbuild:base-gcc11-cc22f0--r
  • return 1
  • echo Unable to find dcgmbuild:base-gcc11-cc22f0--r. Building ...
    Unable to find dcgmbuild:base-gcc11-cc22f0--r. Building ...
  • docker_build -t dcgmbuild:base-gcc11-cc22f0--r --build-arg TARGET=-r -f base.dockerfile /home/sdp/prems/DCGM/dcgmbuild
  • docker buildx build --platform=linux/amd64 --load --network=host -t dcgmbuild:base-gcc11-cc22f0--r --build-arg TARGET=-r -f base.dockerfile /home/sdp/prems/DCGM/dcgmbuild
    unknown flag: --platform
    See 'docker --help'.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with build.sh and the docker_build invocation shown in the report, then check how the installed Docker command handles the listed build options. Reproduce ./build.sh -r --deb with the reported Docker version. Done means the script no longer fails on the reported unknown flag and the requested build proceeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, shell
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.