codecraig
codecraig

Reputation: 3158

How can I copy a Docker image fetched from the Internet and move it to a host not connected to the Internet?

Say I want to get a Docker image (such as https://github.com/zettio/weave/blob/master/weaver/Dockerfile) downloaded and built from the Internet, but then take it to a computer not connected to the Internet, so that computer can run a container using it?

What files/directories would I need to archive to do that?

Upvotes: 1

Views: 436

Answers (1)

cronos
cronos

Reputation: 2438

Save it, copy the tar file to a USB, go to other computer and load it.

docker save -o image.tar image

then on other computer:

docker load -i image.tar

Upvotes: 6

Related Questions