Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I download Docker images without using the pull command?

Is there a way I can download a Docker image/container using, for example, Firefox and not using the built-in docker-pull.

I am blocked by the company firewall and proxy, and I can't get a hole through it.

My problem is that I cannot use Docker to get images, that is, Docker save/pull and other Docker supplied functions since it is blocked by a firewall.

like image 993
Ephreal Avatar asked Jun 19 '16 09:06

Ephreal


People also ask

How do I download Docker images?

Most of your images will be created on top of a base image from the Docker Hub registry. Docker Hub contains many pre-built images that you can pull and try without needing to define and configure your own. To download a particular image, or set of images (i.e., a repository), use docker pull .

What is the command we use to download Docker images?

The 'docker pull' is a Docker command to download a Docker image or a repository locally on the host from a public or private registry.


1 Answers

Just an alternative - This is what I did in my organization for couchbase image where I was blocked by a proxy.

On my personal laptop (OS X)

~$ $ docker save couchbase > couchbase.tar ~$ ls -lh couchbase.docker -rw-------  1 vikas  devops   556M 12 Dec 21:15 couchbase.tar ~$ xz -9 couchbase.tar ~$ ls -lh couchbase.tar.xz -rw-r--r--  1 vikas  staff   123M 12 Dec 22:17 couchbase.tar.xz 

Then, I uploaded the compressed tar ball to Dropbox and downloaded on my work machine. For some reason Dropbox was open :)

On my work laptop (CentOS 7)

$ docker load < couchbase.tar.xz 

References

  • https://docs.docker.com/engine/reference/commandline/save/
  • https://docs.docker.com/engine/reference/commandline/load/
like image 71
vikas027 Avatar answered Oct 03 '22 21:10

vikas027