Docker save file

I have a docker image running right now, and access it by boot2docker. I use Python on this, with all the libraries installed.
My problem is that I can’t save any file or images on Docker. I just execute a little script that save an image in jpg format, but nothing is saved. I give all the rights to the repository, and no one error appears.
I use cv2.imwrite for saving image. cv2.imread is working.

Thank for the answers!

  • Docker pull by digest does not work with Docker 1.13.1 & Artifactory 5.0.1
  • How to restore snapshot of docker image (for testing purpose, every test on this same docker image)
  • Install .NET Framework 3.5 on Windows Server Core Docker
  • Dockerized nodes of elasticsearch cluster in EC2, production environment
  • Docker on bare metal?
  • How to avoid redundant container linking in Docker when propagating IP addresses?
  • Local development with docker - do I need 2 Dockerfiles?
  • Error when doing a docker ps
  • Elastic Beanstalk with multiple environments and URL routing between them
  • docker + rails + redis - rescue workers are not running
  • Docker Django migrate command Type Error [closed]
  • Why shouldn't I Docker all the things? [closed]
  • One Solution collect form web for “Docker save file”

    What you need to do is to add a volume to you local disk. Then such image will be saved in the directory you specified and survive container starts/stops etc. Here are the docs.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.