ECS FARGATE TASK定义(带有Docker Hub图像)

c2e8gylq  于 2022-12-11  发布在  Docker
关注(0)|答案(3)|浏览(117)

我想使用来自Docker hub的phpmyadmin公共映像并配置ECS fargate任务。但不确定如何简单地将Docker pull phpmyadmin命令放入ECS任务定义中。是否有直接从Docker hub公共存储库执行此操作的选项?或者我应该在本地构建映像,推到ECR并使用该映像?

c0vxltue

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.

eufgjt7s

eufgjt7s2#

知道了。2不需要推到ECR。3只需要FROM和image命令就可以了。

vlf7wbxs

vlf7wbxs3#

You can simply write:

docker.io/<dockerhub_username>/<dockerhub_repository>:tag

in Image field
For phpmyadmin it should be:

docker.io/phpmyadmin:latest

相关问题