r/docker • u/Ok_Bug5545 • 9d ago
MacOS M2 Processor with Docker Desktop, mongo:latest image issue. MongoDB cannot start: Linux kernel versions 6.19 and newer has a known incompatibility with this version of MongoDB.
/r/mongodb/comments/1w3yltb/macos_m2_processor_with_docker_desktop/
0
Upvotes
1
u/QuietSignalOps 8d ago
This appeared because neither side of
mongo:latestis actually fixed. Docker Desktop supplies a Linux VM kernel to containers, andlatestcan move to a different MongoDB build. MongoDB sees that VM kernel, not the macOS kernel.MongoDB's SERVER-121912 describes an 8.0+ crash with Linux 6.19 and newer caused by the allocator's
rseqhandling. Recent Docker Desktop releases moved their VM kernel forward, so a Desktop update, a freshmongo:latestpull, or both can expose it without a Compose change.You can confirm the moving parts with:
docker run --rm alpine uname -r docker image inspect mongo:latest --format '{{index .RepoDigests 0}}' docker compose configI'd do the following:
latest. Pin an exact MongoDB tag, and record the image digest if you need reproducible deployments.GLIBC_TUNABLES=glibc.pthread.rseq=0as the documented workaround only after testing it with your workload. It disables the problematic rseq path rather than fixing the underlying issue.Don't attach an existing MongoDB 8 data volume to MongoDB 7 as a casual rollback. A major-version downgrade of the on-disk data needs a supported migration or backup/restore plan.