Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get any slim image for base image #729

Open
631068264 opened this issue Nov 13, 2024 · 0 comments
Open

Can't get any slim image for base image #729

631068264 opened this issue Nov 13, 2024 · 0 comments

Comments

@631068264
Copy link

631068264 commented Nov 13, 2024

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
@631068264 631068264 changed the title Can't get any slim image after use slim Can't get any slim image for base image Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant