AWS Lightsail container pulling image from DockerHub: Why redeployment fails after port added

0

There is already a deployed image that is active. https://preview.redd.it/aws-lightsail-continer-pulling-image-from-dockerhub-why-v0-6jhhhbso1kyc1.png?width=1024&format=png&auto=webp&s=ba97b79ba4632dbcddc9e779a66b6e20c441a379

This deployment does not have a public endpoint.

So I add 5000 port and choose an end point: https://preview.redd.it/aws-lightsail-continer-pulling-image-from-dockerhub-why-v0-w0r9vzi02kyc1.png?width=1024&format=png&auto=webp&s=0179833af98271c2992327f874496c71dfc81f50

On Save and Deploy, this fails.

Pushed a DockerHub image to AWS Lightweight container. When not making public, the image is deployed. But when trying to make it public by adding a port, getting on log unhealthy 5000 port.

If I understand correctly, the port on the DockerHub account where the image is located should have 5000 port no. open. There is no question of port open or closed insider AWS Lightweight container? If it were an AWS Lightsail instance, then I know ports can be opened from there through Network tab.

Maybe there is a wrong port selection. Any help appreciated.

Earlier started a thread on Reddit and did receive helpful guidance but the issue yet not resolved: https://www.reddit.com/r/aws/comments/1ckl8o2/comment/l2ofq3g/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

profile picture
asked 22 days ago159 views
2 Answers
0

Have you checked the heathCheck parameter in --public-endpoint? There seems a healthyThreshold that indicates the number of consecutive health checks successes required before moving the container to the Healthy state. The default value is 2. There are also other parameters like successCodes that might worth taking a look.

https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/create-container-service-deployment.html

AWS
answered 22 days ago
0

I have raised this issue on Reddit as well and received useful guidance but the issue not resolved: https://www.reddit.com/r/aws/comments/1ckl8o2/aws_lightsail_continer_pulling_image_from/?utm_source=share&utm_medium=mweb3x&utm_name=post_embed&utm_term=1&utm_content=1

Instead of duplicating, I have shared the above link.

profile picture
answered 21 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions