-
Notifications
You must be signed in to change notification settings - Fork 128
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
enable docker run microsoft/iis cmd #9
Conversation
I'm looking at Apache and Nginx as well and does seem to be commonplace to specify the "entrypoint" of a base image using the @MichaelSimons @glennc Thoughts on making this change? |
As I've seen the nginx, httpd and mongo official Dockerfiles, I would also prefer to use |
What is the version scheme for this image and the potential impact this change may have on existing users? |
Versioning scheme for this repo is Seems like a low impact change, however the ASP.NET images depend on this image they will be affected as well. |
Are there ever any arguments you would want to pass to ServiceMonitor? |
ServiceMonitor is generic enough to work with any service (that listens to Ctrl+C), but there's really no reason monitor any other service in the IIS/ASP.NET images. |
Actually mongo uses ENTRYPOINT instead of CMD. https://github.com/docker-library/mongo/blob/b37a4891feffeafb77febd2833d96b59cf28d6a8/3.0/Dockerfile#L51 There doesn't seem to be a fixed consensus. This dockerfile was authored with the idea that user shouldn't need to modify the entry point. @tg123, could you provide some more detailed description of your motivation for the change? |
Can't you just run |
Yes. This currently works |
Hi @shufan I checked the Dockerfile you referred, it uses
As I know most docker images use entrypoint to do some init works that must be called when container starts. And any detailed reason why user should not change the entrypoint? |
Technically docker-mongo uses ENTRYPOINT and CMD is only there to provide the input argument. It's true that ServiceMonitor serves like a daemon currently therefore CMD would make sense. However I know that there's some work going on for w3svc to be called directly. In that case ENTRYPOINT makes sense over CMD. So this is another reason that ENTRYPOINT was chosen. @shirhatti should have more context on this |
enable
docker run microsoft/iis cmd