Push docker multi-arch images to Lightsail with specific architecture

0

I am trying to deploy a container-service based on a Docker multi-arch image (linux/amd64 and linux/arm64). This image has been build with docker buildx build. When using

aws lightsail push-container-image --region <my_region> --service-name <my_service>--label <my_label> --image <my_user>/<multi-arch-image:latest>

I am finding errors associated with the format of my package manager (exec /usr/local/bin/poetry: exec format error) and that suggests a discrepancy between the architecture of the image and the architecture used in ligthsail. Hence, ligthsail may be deploying considering the linux/arm64 architecture of the image instead of the linux/amd64 that it accepts.

Is there a way to push and image considering a particular architecture (amd64) that is compatible with Ligthsail?

ega
質問済み 7ヶ月前253ビュー
1回答
0

Hello.

How about making it based on amd using the following command when building Docker?

docker build --platform linux/amd64
profile picture
エキスパート
回答済み 7ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ