slimtoolkit / slimtoolkit/slim
Can't get any slim image for base image
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 23.4k
- Forks
- 840
- PR merge metrics
- No merged PRs in 30d
Description
I want to slim the image as the base image to build another image. How to slim base image without EXPOSE and CMD in Dockerfile
but when use cmd
slim build nvcr.io/nvidia/tritonserver:24.09-py3 --expose=8000,8001,8002 --cmd "tritonserver --model-repository=models --model-control-mode=explicit"
cmd=build info=param.http.probe message='using default probe'
cmd=build state=started
cmd=build info=params keep.perms='true' tags='' image-build-engine='internal' target.type='image' target.image='nvcr.io/nvidia/tritonserver:24.09-py3' continue.mode='probe' rt.as.user='true'
cmd=build state=image.inspection.start
cmd=build info=image size.human='17 GB' id='sha256:c5c45c88891a74c5759a963649f29dd0edc085a30f78507c530b7996002f9e5f' size.bytes='16927000671'
cmd=build info=image.stack index='0' name='nvcr.io/nvidia/tritonserver:24.09-py3' id='sha256:c5c45c88891a74c5759a963649f29dd0edc085a30f78507c530b7996002f9e5f'
cmd=build state=image.inspection.done
cmd=build state=container.inspection.start
cmd=build info=container status='created' name='slimk_3402245_20241113023851' id='62fea0b2c40d6dd176bff6b4fb3ea5d3d7558dea6c00bbbe22b4092ed88396ee'
cmd=build info=container status='running' name='slimk_3402245_20241113023851' id='62fea0b2c40d6dd176bff6b4fb3ea5d3d7558dea6c00bbbe22b4092ed88396ee'
cmd=build info=container message='obtained IP address' ip='172.17.0.3'
cmd=build info=cmd.startmonitor status='sent'
cmd=build info=event.startmonitor.done status='received'
cmd=build info=container id='62fea0b2c40d6dd176bff6b4fb3ea5d3d7558dea6c00bbbe22b4092ed88396ee' target.port.list='' target.port.info='' message='YOU CAN USE THESE PORTS TO INTERACT WITH THE CONTAINER' name='slimk_3402245_20241113023851'
cmd=build state=http.probe.error error="NO EXPOSED PORTS" message="expose your service port with --expose or disable HTTP probing with --http-probe=false if your containerized application doesnt expose any network services"
cmd=build state=exited code=33554435
cmd=build info=container.inspector.cleanup name='slimk_3402245_20241113023851' id='62fea0b2c40d6dd176bff6b4fb3ea5d3d7558dea6c00bbbe22b4092ed88396ee'
cmd=build state=container.target.shutdown.start
cmd=build state=container.target.shutdown.done
cmd=build info=report file='slim.report.json'
cmd=build info=exit code='33554435' version='linux/amd64|Transformer|1.40.11|1b271555882eacdfb4e6598d6d0552e9b9b1449b|2024-02-02_01:36:22PM' location='/usr/local/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'
run
slim build nvcr.io/nvidia/tritonserver:24.09-py3 --http-probe=false
cmd=build info=param.http.probe message='using default probe'
cmd=build state=started
cmd=build info=params target.image='nvcr.io/nvidia/tritonserver:24.09-py3' continue.mode='probe' rt.as.user='true' keep.perms='true' tags='' image-build-engine='internal' target.type='image'
cmd=build state=image.inspection.start
cmd=build info=image id='sha256:c5c45c88891a74c5759a963649f29dd0edc085a30f78507c530b7996002f9e5f' size.bytes='16927000671' size.human='17 GB'
cmd=build info=image.stack index='0' name='nvcr.io/nvidia/tritonserver:24.09-py3' id='sha256:c5c45c88891a74c5759a963649f29dd0edc085a30f78507c530b7996002f9e5f'
cmd=build state=image.inspection.done
cmd=build state=container.inspection.start
cmd=build info=container status='created' name='slimk_3403549_20241113024253' id='87eb6fa3282ebfa596d9f6ba30cdbdfe60d1b8f3cbe2285bb0ea85f7dbb974a3'
cmd=build info=container name='slimk_3403549_20241113024253' id='87eb6fa3282ebfa596d9f6ba30cdbdfe60d1b8f3cbe2285bb0ea85f7dbb974a3' status='running'
cmd=build info=container message='obtained IP address' ip='172.17.0.3'
cmd=build info=cmd.startmonitor status='sent'
cmd=build info=event.startmonitor.done status='received'
cmd=build info=container message='YOU CAN USE THESE PORTS TO INTERACT WITH THE CONTAINER' name='slimk_3403549_20241113024253' id='87eb6fa3282ebfa596d9f6ba30cdbdfe60d1b8f3cbe2285bb0ea85f7dbb974a3' target.port.list='' target.port.info=''
cmd=build state=http.probe.error error="NO EXPOSED PORTS" message="expose your service port with --expose or disable HTTP probing with --http-probe=false if your containerized application doesnt expose any network services"
cmd=build state=exited code=33554435
cmd=build info=container.inspector.cleanup name='slimk_3403549_20241113024253' id='87eb6fa3282ebfa596d9f6ba30cdbdfe60d1b8f3cbe2285bb0ea85f7dbb974a3'
cmd=build state=container.target.shutdown.start
cmd=build state=container.target.shutdown.done
cmd=build info=report file='slim.report.json'
cmd=build info=exit code='33554435' version='linux/amd64|Transformer|1.40.11|1b271555882eacdfb4e6598d6d0552e9b9b1449b|2024-02-02_01:36:22PM' location='/usr/local/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'
Specifications
- Version: slim 1.40.11
- Platform: Ubuntu
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 the slim build command using the Triton image and both the --expose and --http-probe=false variants shown in the report. Trace how HTTP probing and the absence of exposed ports are handled; done means the command can process this base image without the reported NO EXPOSED PORTS failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- cli, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100