Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker images sparkfhir/mongo doesn't start on MacBook Air m3 #825

Closed
bqfan opened this issue Jan 13, 2025 · 1 comment
Closed

docker images sparkfhir/mongo doesn't start on MacBook Air m3 #825

bqfan opened this issue Jan 13, 2025 · 1 comment

Comments

@bqfan
Copy link

bqfan commented Jan 13, 2025

Describe the bug

2025-01-13 20:06:03 
2025-01-13 20:06:03 WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!
2025-01-13 20:06:03   see https://jira.mongodb.org/browse/SERVER-54407
2025-01-13 20:06:03   see also https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610/2
2025-01-13 20:06:03   see also https://github.com/docker-library/mongo/issues/485#issuecomment-891991814
2025-01-13 20:06:03 
2025-01-13 20:06:03 /usr/local/bin/docker-entrypoint.sh: line 416:    28 Illegal instruction     "${mongodHackedArgs[@]}" --fork

To Reproduce
Steps to reproduce the behavior:

  1. docker pull sparkfhir/mongo:r4-latest
  2. Run the docker image
  3. See the error from the logs

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Spark version

  • Version: [e.g. 1.5.9]

Operating system + Database

  • OS: [e.g. Linux]
  • Database: [e.g. MongoDB]

Container service / Cloud infrastructure:

  • Container service: [e.g. Docker swarm]
  • Cloud provider: [e.g. Google Cloud]
  • Cloud infrastructure: [e.g. VM, Web Service, etc]
  • Database as a service: [e.g. CosmosDB w/ MongoDB API]

Additional context
Mongo 5.0.0 crashes but 4.4.6 works
MongoDB 5.0 CPU Intel G4650 compatibility](https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610)

@bqfan
Copy link
Author

bqfan commented Jan 14, 2025

change docker-compose.yml:

  mongodb:
    container_name: mongodb
    image: arm64v8/mongo:5.0.3
    platform: linux/arm64/v8

@bqfan bqfan closed this as completed Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant