How to use libraries, running at docker
Question: Can anybody, please, explain me, how to use a library, which image's running
at docker? And how the process is constructed in genereal: how python access
the image or vice-versa( i mean, its not in the "lib" folder in python,
right?)? And simply, what should i do, to be able to do `import library` , so
it is ready to use. For example, this one:
<https://hub.docker.com/r/kaixhin/caffe/> Using Ubuntu 16. Thanks.


Answer: Use Python's amazing [VirtualEnv](https://virtualenv.pypa.io/en/stable/)
module to bundle imports, essentially making them available at the image's
build time.

Then, in your application, use the Python "binary" of that virtualenv and
enjoy hassle-free imports :)

Here's a [link](https://www.theodo.fr/blog/2015/04/docker-and-virtualenv-a-
clean-way-to-locally-install-python-dependencies-with-pip-in-docker/) I've
found about how some developer achieved the same thing, while bundling
everything inside a docker image.

