MongoDB CON DOCKER COMPOSE

Solucionado error de inicio de la imagen

Ejecutar desde el bash
Last updated


Last updated
docker pull mongo:latestversion: '3.7'
services:
mongodb_container:
image: mongo:latest
ports:
- 27017:27017
volumes:
- mongodb_data_container:/data/db
volumes:
mongodb_data_container:sudo mkdir -p /data/db sudo chmod 777 /data/dbsudo mkdir -p /var/log/mongodbdocker-compose up -ddocker ps -adocker-compose stopdocker-compose down//2022-05-17T02:49:31.186419238Z
2022-05-17T02:49:31.186502005Z WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!
2022-05-17T02:49:31.186518838Z see https://jira.mongodb.org/browse/SERVER-54407
2022-05-17T02:49:31.186526822Z see also https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610/2
2022-05-17T02:49:31.186534545Z see also https://github.com/docker-library/mongo/issues/485#issuecomment-891991814
2022-05-17T02:49:31.186541700Z
version: '3.7'
services:
mongodb_container:
#image: mongo:latest
image: mongo:4.0
ports:
- 27017:27017
volumes:
- mongodb_data_container:/data/db
volumes:
mongodb_data_container:
docker ps -adocker exec -it imagencodigo bash