I want to use phpmyadmin public image from docker hub and configure ECS fargate task .But not sure how to simply put docker pull phpmyadmin command in ECS task definition. Is there an option to do it directly from docker hub public repo? or should i build image locally, push to ECR and use that image?
Inside of your task definition you would need to add your container definitions.
For the image value you would need to set the public image name copied from Docker Hub.
There's no need to push to ECR for this as it is already a public image.
got it. not required to push to ECR. simply FROM and image command worked.