Hi,
I’m having issues setting up the community version of mongodb as a docker container on ubuntu22.04.4 desktop VM
I’m using the official documentation: https://www.mongodb.com/docs/manual/tutorial/install-mongodb-community-with-docker/
I can pull the image without issue, but when i perform the second step to run the actual image i get the following warning:
Warning: File MONGO_INITDB_ROOT_USERNAME_FILE is deprecated. Use MONGODB_INITDB_ROOT_USERNAME_FILE instead.
Warning: File MONGO_INITDB_ROOT_PASSWORD_FILE is deprecated. Use MONGODB_INITDB_ROOT_PASSWORD_FILE instead.
Traceback (most recent call last):
File "/usr/local/bin/docker-entrypoint.py", line 637, in <module>
subprocess.run(get_final_command_line_args(), check=True)
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['mongod', '--bind_ip_all']' died with <Signals.SIGILL: 4>.
I already tried setting the ip using ‘–bind_ip’ to localhost, ip of the VM, 127.0.0.1 but the container doesn’t want to start.
I think it is a networking issue but i don’t really understand it. Could someone explain it to me?
Regards!