我想使用来自Docker hub的phpmyadmin公共映像并配置ECS fargate任务。但不确定如何简单地将Docker pull phpmyadmin命令放入ECS任务定义中。是否有直接从Docker hub公共存储库执行此操作的选项?或者我应该在本地构建映像,推到ECR并使用该映像?
c0vxltue1#
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.
eufgjt7s2#
知道了。2不需要推到ECR。3只需要FROM和image命令就可以了。
vlf7wbxs3#
You can simply write:
docker.io/<dockerhub_username>/<dockerhub_repository>:tag
in Image fieldFor phpmyadmin it should be:
docker.io/phpmyadmin:latest
3条答案
按热度按时间c0vxltue1#
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.
eufgjt7s2#
知道了。2不需要推到ECR。3只需要FROM和image命令就可以了。
vlf7wbxs3#
You can simply write:
in Image field
For phpmyadmin it should be: