Coder Social home page Coder Social logo

Comments (5)

jainashish1711 avatar jainashish1711 commented on May 15, 2024 1

Thanks for the response. I tried all . may be its with mongo DB something . I will try this out with Sql instead of mongo and creating Catalog DB over there.
Although when i replace exec with run i get some different. if you make out of it something. or is it might be due to bin path is not located
image

thanks for your support
@mehmetozkaya

from run-aspnetcore-microservices.

mehmetozkaya avatar mehmetozkaya commented on May 15, 2024

Actually it was worked for me but not sure that why its happened. When I checked the official image;
https://hub.docker.com/_/mongo

I saw that below part, so could you try with only bash instead of bin/bash

Container shell access and viewing MongoDB logs
The docker exec command allows you to run commands inside a Docker container. The following command line will give you a bash shell inside your mongo container:

$ docker exec -it some-mongo bash

from run-aspnetcore-microservices.

jainashish1711 avatar jainashish1711 commented on May 15, 2024

Still having same issue. Please find screenshot below.
I am stuck here now.

image
@mehmetozkaya

from run-aspnetcore-microservices.

mehmetozkaya avatar mehmetozkaya commented on May 15, 2024

I also don't know why it is giving this error but if you can try with fresh test with delete and re-create mongo image and try. If nothing change then it could be network problem that you can't insert your docker image from your computer.

from run-aspnetcore-microservices.

madhu23rima avatar madhu23rima commented on May 15, 2024

I ran into the same issue. We need to use mongosh instead of mongo

Found solution here
https://stackoverflow.com/questions/73582703/mongo-command-not-found-on-mongodb-6-0-docker-container

from run-aspnetcore-microservices.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.