Running tensorflow-gpu and mongodb in the same container

I want to build a docker container having both tensorflow-gpu and MongoDB installed. I am using tensorflow-gpu image from docker hub as the base image and tried to download mongodb-org but I get errors

The following packages have unmet dependencies:
mongodb-org : Depends: mongodb-org-shell but it is not going to be installed
Depends: mongodb-org-server but it is not going to be installed
Depends: mongodb-org-mongos but it is not going to be installed
Depends: mongodb-org-tools but it is not going to be installed

Is there a way to install MongoDB inside tensorflow-gpu image.

But why do you want to do this? Why not split it up so the tensorflow connects to the mongodb container?

Does that mean using two images in one container? I don’t know how that can be accomplished?

How did you tried? Did you used the installation method described in the documentation which uses the package repositories?

But @terpz is right. You could run mongodb in a different container.

That is not possible. You can run two different containers and connect from the tensorflow container to the mongodb container.

I couldn’t find any documentation on installing MongoDB inside the container. I just found the image which can be pulled.

Okay Thanks, I will try that.