DockerUser
DockerUser

Reputation: 1

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!

Upvotes: 0

Views: 2104

Answers (1)

Opal
Opal

Reputation: 84864

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.

Upvotes: 1

Related Questions