slimtoolkit / slimtoolkit/slim
API version incorrect
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 23.4k
- Forks
- 840
- PR merge metrics
- No merged PRs in 30d
Description
Expected Behavior
slim builds an image
Actual Behavior
I get an error about API versions, "cmd=build info=build.error status='standard.image.build.error' value='API /build requires version 1.25, requested version 1.24 is insufficient'"
slim build --dockerfile ./Dockerfile --tag image-name:slim --cbo-build-arg BUILD_ARG=arg --dockerfile-context $(pwd)
cmd=build info=param.http.probe message='using default probe'
cmd=build state=started
cmd=build info=params rt.as.user='true' keep.perms='true' image-build-engine='internal' target.type='dockerfile' context='/Users/genevera/src/image-name' file='./Dockerfile' continue.mode='probe'
cmd=build state=building message="building basic image"
cmd=build info=basic.image.info tag='image-name.fat:slim' dockerfile='./Dockerfile' context='/Users/genevera/src/image-name'
cmd=build log='regular.image.build' event=LOG.START tag='image-name.fat:slim' ====================
cmd=build log='regular.image.build' event=LOG.END tag='image-name.fat:slim' ====================
cmd=build info=build.error status='standard.image.build.error' value='API /build requires version 1.25, requested version 1.24 is insufficient'
cmd=build state=exited code=33554435 version=darwin/arm64|Transformer|1.40.11|latest|latest location=/opt/homebrew/bin
cmd=build info=report file='slim.report.json'
cmd=build info=exit code='33554435' version='darwin/arm64|Transformer|1.40.11|latest|latest' location='/opt/homebrew/bin'
app='slim' message='GitHub Discussions' info='https://github.com/slimtoolkit/slim/discussions'
app='slim' message='Join the CNCF Slack channel to ask questions or to share your feedback' info='https://cloud-native.slack.com/archives/C059QP1RH1S'
app='slim' message='Join the Discord server to ask questions or to share your feedback' info='https://discord.gg/9tDyxYS'
app='slim' message='Join the Gitter channel to ask questions or to share your feedback' info='https://gitter.im/docker-slim/community'
Steps to Reproduce the Problem
- run slim build
Specifications
- Version: 1.40.11
- Platform: darwin/arm64
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 by reproducing the slim build command shown in the issue and inspect the build path responsible for Docker API version negotiation; no source file or test is named. Done means the same Dockerfile build completes without the API 1.25/1.24 incompatibility error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- build-system, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100