Roles missing in mongodb

I am using Docker to add mongodb 2.6.5 to a host that already had 2.4.9 installed and I am sharing the data directory.

When I run the 2.6.5 (in container) I get permission issues apparently due to changes in 2.6:

  • Can docker containers be used for live migration of a group of running applications?
  • docker : container exited when using -v option
  • Using one command to list all docker images
  • Accessing environment variables in Docker containers linked with --link
  • docker container does not start Java in background
  • Protractor in a Docker container - Wait for full page to load

    But when I try to add a user with role roleAdminAnyDatabase I get “No role named roleAdminAnyDatabase@admin”

    Do I need to migrate the data? What is the best way to do that?

    I assume I could start up 2.6.5 with no data files and mongorestore the data from 2.4.9. But, does that mean I cannot run 2.4.9 using that directory anymore?

  • the input device is not a TTY
  • How to configure Vagrant box filesystem?
  • Docker communication between two containers with Java
  • running docker request from php
  • Using host env variable with docker remote API
  • How to edit files in docker for scrapinghub portia
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.