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

前端 未结 8 514
[愿得一人]
[愿得一人] 2020-12-07 11:56

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 f

8条回答
  •  日久生厌
    2020-12-07 12:35

    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/

提交回复
热议问题