You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In both cases you are getting the same error message, which says that your target container image doesn't explicitly declare any exposed ports (with the EXPOSE Dockerfile instruction): 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"
The command flags you provided in the command are ignored if they are passed after the target container image name/ID... This explains the output you got with slim build nvcr.io/nvidia/tritonserver:24.09-py3 --http-probe=false where --http-probe was ignored. The target container image name/ID needs to be the very last thing you provide in the command line OR you need to specify the target container image name/ID using the explicit --target flag.
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
run
Specifications
The text was updated successfully, but these errors were encountered: