rohitkadam19
rohitkadam19

Reputation: 1874

Pull docker image which is not pushed to repository

I have one docker image on Ubuntu machine. I have committed that docker image locally but not pushed to any repository. Now I want to pull same image on other machine(Windows 7). How can I pull that image. both machines win 7 ans Ubuntu are in same network.

Upvotes: 3

Views: 124

Answers (3)

Assaf Lavie
Assaf Lavie

Reputation: 75913

Aside from exporting/importing the image as tar, as suggested by others, you can also run a private registry on your local network and push/pull from it. See the docker-registry image.

Upvotes: 0

cdrev
cdrev

Reputation: 6024

Save your image to a .tar:

docker save IMAGE_ID > /path/to/image.tar

Transfer it to your Windows machine, and load it:

docker load < /path/to/image.tar

Upvotes: 1

Marcus Hughes
Marcus Hughes

Reputation: 5493

You can export an image using docker export. So if you pipe the image into a tar (as documented here http://docs.docker.com/reference/commandline/cli/#export) you can then import that on the Windows 7 host (http://docs.docker.com/reference/commandline/cli/#import).

When you import an image you can assign its name and tag.

The only thing you need to work out here is how you would like to transfer the image over the network. You could use something like SCP or NFS, but it shouldn't really matter.

Upvotes: 2

Related Questions