1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

RasberryPi 4でmysql:8.0イメージを動かそうとしたときにexec /usr/local/bin/docker-entrypoint.sh: exec format errorが出た

Last updated at Posted at 2022-07-31

概要

Rasberry Pi 4でmysql:8.0イメージを動かそうとしたときに以下のようなエラーが出た。

exec /usr/local/bin/docker-entrypoint.sh: exec format error

どうやら調べてみるとアーキテクチャ由来のものらしい。実際、動いていた開発環境はx86でRasberryPi 4 はarmである。

解決策

Dockerfileを

FROM mysql:8.0

から

FROM --platform=linux/arm64 mysql:8.0

に変更すると動いた。

参考

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?