LoginSignup
0
0

More than 1 year has passed since last update.

M1 MacでのECRデプロイ

Last updated at Posted at 2021-12-08

はじめに

Mac M1にして、ECRにイメージデプロイしたら以下のエラーが出たのでメモしておきます。

standard_init_linux.go:228: exec user process caused: exec format error

対処法

build時にplatformを指定します。

docker build --platform amd64 -t [イメージ名] .

これでエラーが解消しました。

Mac M1にすると、アーキの変更で所々つまづきます。
でも色々勉強になって面白いです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0