Reputation: 881
I am trying to save a Docker image inside VM so that I can load to my windows. While saving the images, I got an error stating "permission is denied" to create a .tar file.
docker save -o /mnt/sda1/var/lib/docker/tensorflow.tar user/tensorflow-serving-devel
user/tensorflow-serving-devel is the image ID here . Trying this gave me:
open /mnt/sda1/var/lib/docker/.docker_temp_783580193: permission denied.
I am using Docker Toolbox here. I referred to this question to create the .tar file.
Edit : I created the file .tar by
docker@default : docker save -o tensorflow.tar user/tensorflow-serving-devel
docker@default : ls \
>
tensorflow.tar
docker@default : docker cp tensorflow.tar /c/Users/usr/Downloads/
Error:
must specify at least one container source
How do I copy this .tar file that container image?
Upvotes: 5
Views: 30465