dhinar1991
dhinar1991

Reputation: 881

Must specify at least one container source

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.

enter image description here

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

Answers (2)

eapo
eapo

Reputation: 1081

You can specify the container source as follows in your case:

docker cp tensorflow.tar tensorflow-vm:/c/Users/usr/Downloads/

Where tensorflow-vm is the example name of your container, what can be found using

docker ps -a

Upvotes: 1

cryptoparty
cryptoparty

Reputation: 345

U can use Docker Swarm to add config.

Upvotes: -1

Related Questions