Can I pull an image without Internet when the image exists in docker registry-mirror?

I create a registry mirror. Can I pull an image without Internet? I have created a mirror using this command:

docker run -d -p 5555:5000 -e STORAGE_PATH=/mirror -e STANDALONE=false -e MIRROR_SOURCE= -e MIRROR_SOURCE_INDEX= -v /Users/v11/Documents/docker-mirror:/mirror  --restart=always --name mirror registry

When I pull an image like hello-world:

  • Angular2 docker setup for multiple environments
  • Docker Error: CSS File in Mapped Volume Fails to Update
  • Migrate WordPress data to Docker Container?
  • Fedora seems to not support btrfs
  • Trouble connecting to MS SQL from Alpine Linux Docker
  • How do I restore a dump file from mysqldump using kubernet?
  • docker pull image

    I can find the image in local path what I set “/Users/v11/Documents/docker-mirror”. Does it mean I succeed in creating mirror? But, I closed the Internet, and delete the hello-world:

    docker rmi hello-world

    and pull again, but it failed. I want to know whether I must use mirror with Internet? if not, what is wrong with me?

    By the way, I have started docker daemon with this ENV:

    docker --insecure-registry --registry-mirror= -d &

    and is my boot2docker ip.

  • Can I get an image digest without downloading the image?
  • Combining salt, docker and Amazon EC2 for hosting Python application
  • Unable to Register Chaincode & Successfully Start Blockchain Network
  • Using private docker registry for GitLab CI
  • Access camera inside docker container
  • Go & Docker: I'm able to run a go web server when using stdlib, when I use custom packages errors occur
  • One Solution collect form web for “Can I pull an image without Internet when the image exists in docker registry-mirror?”

    In your configuration you specified a non-standalone setup using a MIRROR_SOURCE_INDEX. So whenever you want to search for an image that index is queried. The other MIRROR_SOURCE gets queried for the image itself.

    You might be able to retrieve an image offline with a pull request (that has already been pulled before while you were online). But you are not able to issue docker search commands when the index is not available.

    If you want to be completely independent from the public docker registry then you would need to setup your own private registry.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.