Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-77678

Docker images not working as expected

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • OS X
    • Hide

      I'm running

      docker run --name mongodb -p 27017:27017 mongodb/mongodb-community-server:6.0-ubi8
      

      On the other terminal

      mongosh mongodb://localhost:27017
      

      And I get

      MongoServerSelectionError: connection <monitor> to 127.0.0.1:27017 closed
      
      Show
      I'm running docker run --name mongodb -p 27017:27017 mongodb/mongodb-community-server:6.0-ubi8 On the other terminal mongosh mongodb: //localhost:27017 And I get MongoServerSelectionError: connection <monitor> to 127.0.0.1:27017 closed

      I believe our docker images are not working as expected.
      The instructions in https://www.mongodb.com/compatibility/docker no longer connect to me.

      It definitely worked for me during skunkworks around March.

      the logs from container are

      WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
      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.
      

      Image is latest sha 34f497067c366b920d35b1d90753e71a4849485ee14d05d20f59cd6dd5a245b8 and my laptop is a Mac M1 and I'm using Docker Desktop for Mac

            Assignee:
            Unassigned Unassigned
            Reporter:
            filipe.menezes@mongodb.com Filipe Constantinov Menezes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: