-
Notifications
You must be signed in to change notification settings - Fork 811
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
Not able to pass arguments to entrypoint in buildah #2209
Comments
@akshatsharma4 Can I ask for a bit more information please? Can you tell me:
Thanks! |
(TomSweeneyRedHat) edited this reply slightly to make it a bit more readable in the GitHub interface)
Best Regards, |
@akshatsharma4 thanks for the info. Honestly, I'm not sure how to pull off the debug trick in your environment. However, I have a theory on the issue. It looks like your entrypoint is being set to:
I think the last two entries should instead be in the "Cmd" field. Can you try this slightly modified config command please?
|
@TomSweeneyRedHat Best Regards, |
@akshatsharma4 super! Glad we got it figured out. |
@TomSweeneyRedHat As I mentioned in my previous comment, I had to make a couple of changes after passing Basically, my Dockerfile script itself was not correct, which created all the confusion. Seems like, if you pass two different CMD to ENTRYPOINT in Dockerfile, only the last one will be considered. In my Dockerfile I had passed like this:
Here Also, Please correct me if any of my understanding is wrong. Best Regards, |
@akshatsharma4 Thanks for the feedback, testing, and status. Honestly, I don't know if your understanding is wrong or not offhand, it looks very reasonable and I'll defer to @nalind or others. We'll definitely take a deeper look though thanks to your findings. |
Is this possibly related to containers/podman#4809 ? |
Looks possible. Could you check on newer versions? |
Hm. So I want back and looked at my own work. When I dug into this in early February, I don't think this is the same as the libpod bug above (which was a data schema bug). To be honest, I'm not sure this is open? You can express multi-argument tbh, I'm not sure why this bug is open. |
Hi,
I am not able to pass arguments to the entrypoint while building a buildah image(logstash).
Below is how I was passing arguments to my entrypoint in Dockerfile:
The same thing I tried to do in buildah.sh as:
buildah config --entrypoint '["/usr/share/logstash/config/logstash-entrypoint.sh","--path.settings /etc/logstash/","-f /usr/share/logstash/pipeline/"]' $container
These arguments that are passed to entrypoint is not being read in buildah while it was working as expected in Dockerfile. I am not sure if there is any syntactical error here but I am not facing any problem while building the image.
Kindly help me resolve this.
Best Regards,
Akshat
The text was updated successfully, but these errors were encountered: