Host Global Python Object in Docker Container

I have an object in Python thats pretty big (~10gb). I want to host the object in a Docker container and expose some of its methods to other docker containers, which is possible through TCP. Most web application frameworks doesn’t guarantee a single main process where the object can live in peace. How should I go about it?
The problem is even analogous to having global state in applications such as Celery and Flask. The object is immutable so it’s sort of like a database, but I’d really like it to exist as a Python object.

  • Redirecting Apache Logs to STDOUT
  • Windows Docker in PyCharm - How to locate files on my host computer?
  • Integrating Docker into the existing TFS-based infrastructure (not web-apps) [closed]
  • Using docker behind a proxy on an EC2 instance
  • Running docker with boot2docker on mac os x?
  • What components should be “containerized” - Docker
  • add ssh keys in Docker
  • Passive replicas with Docker swarm mode
  • Docker daemon processes
  • Docker - modifying IPTABLES for host from container
  • Ansible prompt_vars error: GetPassWarning: Cannot control echo on the terminal
  • Docker Images Hierarchy
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.