cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to deploy Docker Image with NGINX in Cloud Foundry

0 Kudos

I have built a docker image (attached herein). The docker image accepts fastcgi connections (TCP Connection), due to which I had to use an NGINX Configuration to have an HTTP usable server. Now we're trying to deploy that Docker Image to Cloud Foundry, but it is failing to start and giving the errors as shown in the error log screenshot.

errorlog.png

I know how to deploy a simple Docker Image to Cloud Foundry, but in this case we have NGINX also in the picture.

I have referred the below link as well where it has mentioned about deploying NGINX, however there is no mention of docker image in the same.

NGINX Buildpack | Cloud Foundry Docs

Can anyone help me on this please ? There are three Screenshots herein

dockerfile.png

cmdsh.png

nginxconfigfile.png

Regards,

Masthanbee

former_member34
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thank you for visiting SAP Community to get answers to your questions. Since you're new in asking questions here, I recommend that you familiarize yourself with https://community.sap.com/resources/questions-and-answers (if you haven't already), as it provides tips for preparing questions that draw responses from our members.

Should you wish, you can revise your question now by selecting Actions, then Edit.

Finally, if you're hoping to connect with readers, please consider adding a picture to your profile. Here's how you do it: https://www.youtube.com/watch?v=F5JdUbyjfMA&list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS . By personalizing your profile with a photo of you, you encourage readers to respond.

Best regards

Jennifer

SAP Community moderator

Accepted Solutions (0)

Answers (1)

Answers (1)

gregorw
Active Contributor

I think you miss the EXPOSE in your Dockerfile.

0 Kudos

Hi Gregor,

Thank you for the response.

I have already added that EXPOSE. If you see the cmdsh.png, the port is available there. And we are calling that file in Dockerfile.