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!

  • How to replicate microservices when consuming same kafka topic?
  • Microsoft Word crashes when invoking its COM inside Docker Container
  • Cannot remove docker images without tags/<none> tags
  • Pushing a docker image into Artifactory via the publishing mechanism in gradle
  • Dockerize Spring Boot Java app with Kafka, Zookeeper, and MongoDB [closed]
  • Docker build time arguments
  • Conditionally set ENV var based on hostname in Dockerfile
  • Error saving Docker images to AWS S3 bucket from private Docker Registry
  • Alpine Linux Docker SSHD Image Uses VOL-save?
  • Cannot login with wp-cli generated user wordpress behind reverse proxy
  • Run docker inside a docker container?
  • Unable to install scala on phusion/baseimage
  • 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.