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 Swarm - Can’t pull from private registry
  • Mesos/Marathon Memory usage limits for Docker
  • Repair/Uninstall Mesos after cleanup
  • Assign network aliases dynamically on global deployed services in a docker stack
  • Why the pods returns Error or ExitCode:0 even they run successfully?
  • Kubernetes vs Kubernetes on Mesos? [closed]
  • Is it possible to configure Docker to pull from my GitHub repo?
  • How to serve Docker containers with Nginx if there are multiple sites on one host?
  • Is a traefik config with both docker swarm and consul backend possible?
  • docker-compose up leads to “client and server don't have same version (client : 1.14, server: 1.12)” error but client and server have the same version
  • PDAL: filters.outlier: Unexpected argument 'extract'
  • Docker compose not exposing port for application container
  • 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.