Facing unknown docker flag --compress while using build.sh
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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