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:

  • Docker run nanoserver not starting
  • Set up mapping in Elasticsearch during Docker run
  • Install Docker CE on Ubuntu 15.04 Vivid
  • Can I bind a port while building a docker image?
  • Gitlab runner: Use own (exiting) docker container
  • CentOS 7.0 docker fail to start service

    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?

  • How do I attach multiple containers directly to a physical interface?
  • Commit a docker container but doesn't have any changes I made
  • how to communicate containers running in same machine using the host machine ip address
  • AWS: docker container cannot connect to external website on SSL
  • Bitbucket pipelines: link cakephp image with mysql image together
  • How to config Marathon-lb to load balance a service launched in HOST network?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.