-1

I'm quite a newbie on Docker ... .I'm trying to install a MongoDB instance via dockerfile on a CentOS 7 Virtual machine (my host pc is a Windows 11 .. I've decided to use a Linux VM for free tests so I don't have to install nothing directly on my pc for the moment...).

I obtain this error

enter image description here

So, I've tried to install again using this Dockerfile

FROM  mongo:4.4

because I've seen here Mongo DB deployment not working in kubernetes because processor doesn't have AVX support that the 4.4. version is the last version that can work WITHOUT AVX but the error is the same.

Is there some workaround to dockerize my MongoDB istance in my configuration (windows 11 on my pc and then a VM with CentOS7)? How may I modify my dockerfile ? For me could be useful also an old MongoDB version that could be possibly used in a container

Thank you in advance

Cesare
  • 1,629
  • 9
  • 30
  • 72
  • Do you have any problems installing MongoDB directly in Windows? MongoDB is a single stand-alone `.exe` file, there is nothing to "install". You just need to create a folder where you store all your data. – Wernfried Domscheit Aug 04 '23 at 10:00
  • Yes I know but at the moment I prefer not to install MongoDB on my Windows Machine. I'd like to test how to install it using Docker in a Linux environment because this will be my production environment – Cesare Aug 04 '23 at 10:05
  • Do you really need to run it on a Unix machine? Or it’s ok to run on your windows environment? I use [Rancher](https://rancherdesktop.io/) as my docker container software (available for Unix as well) and then I run the docker command to have the docker image running, and I’ve been using it for some years now without an issue… [I have this Gist](https://gist.github.com/balexandre/d0e0ef79c7c2d453eb85d3e17fbe3d51) that I use to run my dbˋs – balexandre Aug 04 '23 at 11:58
  • You shouldn't need a Dockerfile for this; just `docker run mongodb:4.4` with appropriate options. You seem to have attached a PNG file to the question in place of the error message; can you [edit] the question to include the actual text of the error? Is any of your own source code involved, or are you just trying to run the database? – David Maze Aug 05 '23 at 11:20

0 Answers0