I know, there is possible way how to copy file bidirectionally between host and docker container using docker cp
and also it is possible to obtain file from running container using docker-py. But I am not able to figure out how (or if it is even possible) copy file from host to running container using docker-py.
Do you guys have any experiences with such kind of problem? Is it possible to do or I have to execute command using python os.system
. I would like to avoid this solution.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
Something like this should work:
And then use it like: