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!

  • Testing connection to docker daemon
  • Behat, MySql Connection error in Laravel5 : 'PDOException''SQLSTATE[HY000] [2005] Unknown MySQL server host 'mysql' (2)'
  • There is a way to ping a Docker container using its hostname, from another Docker Container?
  • Loading initial data into a Redis Docker container
  • How to specify IBM Containers' IP to register
  • Network name of containers on multiple bridges
  • Trouble getting AWS ecs-cli to pull from private docker repo
  • Can't access publicly exposed Docker container port from external machine, only from localhost?
  • Cannot get boot2docker port forwarding to work on docker mac os X
  • How to start service in docker container at start up
  • Not getting the IP address of the docker container from node.js code when run the container with port forwarding
  • I could curl using IP but not using consul serviceName?
  • 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.