0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

DockerでMongoDB 6.x実行時「requires a CPU with AVX support」と出た際の対処

Posted at

DockerでMongoDB 6.xを実行時、以下エラーが出て問題解決に時間を要した。備忘かねて対応メモを残しておく。

WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!

一般的なPCのCPUは通常、AVXをサポートしていると思うので出ないエラーだと思うが、当方がDockerを実行したミニPCはIntel Celeron N5100というものでAVXをサポートしていなかった。
image.png

AVXをサポートしていないPCの場合、arm64v8指定のmongodbをimage指定することでエラーを出さずに実行できた。

services:
  mongodb:
    image: "arm64v8/mongo:6.0.15"
    platform: "linux/arm64/v8"

(参考)AVXをサポートするPCの場合は以下記載で問題なし

services:
  mongodb:
    image: "mongo:6.0.15"

(参考)
https://stackoverflow.com/questions/71450663/can-we-run-avx-required-software-without-having-it

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?