How to run Mongodb 6.0.* with Docker containers in Mac M1

Hello, guys!

I’m trying to update to use Mongodb 6 in my projects in my Mac M1 (14.2.1), however the mongod server doesn’t starts and i receive a connection refused error.

docker run --name mongodb -p 27017:27017 mongo:6 mongosh

WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!
 see https://jira.mongodb.org/browse/SERVER-54407
 see also https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610/2
 see also https://github.com/docker-library/mongo/issues/485#issuecomment-891991814

Current Mongosh Log ID:	65b16187fcbc3e502e6a6aed
Connecting to:		mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.1.1
MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017

Even with other plataforms

docker run --platform linux/arm64/v8 --name mongodbv8 -p 27017:27017 mongo:6 mongosh
Current Mongosh Log ID:	65b1621f6e5544063b7f2e24
Connecting to:		mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.1.1
MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017