pull image from remote registry – docker

I have installed docker 1.11.2, I am trying to make one private registry for our office.

I followed this link to make private registry, I have successfully pull from localhost but I stuck trying to pull from remote machine.

  • Getting logs of tomcat containers running in kubernetes pods using fluentd, elsasticsearch and kibana
  • Docker Error - “jq: error: Cannot iterate over null”
  • Can't remove files in container with entrypoint.sh
  • How to set mysql system variables such as max_allowed_packet max_allowed_packet, character_set_server and collation-server through Dockerfile?
  • Dockerfile: Permission denied when trying to install ruby-build
  • How can I build a coturn server with dockerfile configuration?
  • Short Description of what I have done

    Step1 :

    docker run -d -p 5000:5000 --restart=always --name registry registry:2


    [root@raj raj]# docker images
    REPOSITORY          TAG                 IMAGE ID                   CREATED             SIZE
    hello-world         latest              c54a2cc56cbb        11 days ago         1.848 kB
    registry            2                   8ff6a4aae657        4 weeks ago         171.5 MB

    step3: (for localhost)

    [root@raj raj]# docker tag hello-world localhost:5000/hello-world
    [root@raj raj]# docker push localhost:5000/hello-world
    The push refers to a repository [localhost:5000/hello-world]
    a02596fdd012: Pushed 
    latest: digest: sha256:a18ed77532f6d6781500db650194e0f9396ba5f05f8b50d4046b294ae5f83aa4 size: 524


    [root@raj raj]# docker pull localhost:5000/hello-world
    Using default tag: latest
    latest: Pulling from hello-world
    Digest: sha256:a18ed77532f6d6781500db650194e0f9396ba5f05f8b50d4046b294ae5f83aa4
    Status: Image is up to date for localhost:5000/hello-world:latest

    It is working fine

    I am trying to pull the image from private registry from remote machine so I have altered the step 3 like below


    [root@raj raj]# docker tag hello-world
    [root@raj raj]# docker push
    The push refers to a repository []
    Get tls: oversized record received with length 20527

    but it throws error tls:oversized

    I have some links related to this issue link1, link2 but it does not resolve my problem

    I have some doubt about this link

    1) I could not found any docker file in that location /etc/sysconfig/docker, /etc/default/docker for changing –insecure-registry

    2) docker -d –insecure-registry (this command is not working it throws below error.

    [root@raj raj]# docker -d --insecure-registry
    flag provided but not defined: -d
    See 'docker –help'.

    Please help to get pull request from remote machine to private registry.

  • npm package.json and docker (mounting it…)
  • chef-container + chef-vault
  • I lose my data when the container exits
  • Docker Swarm : How to setup multiple containers on same volume
  • Apply NetEM WAN delay on a docker container interface
  • Docker wait for web app to start (dependency)
  • 2 Solutions collect form web for “pull image from remote registry – docker”

    Follow the sequence of docker command for making private registry

    Server Side

    1) docker daemon --insecure-registry server-ip:5000

    2) docker run -d -p 5000:5000 --restart=always --name registry registry:2

    3) docker tag hello-world server-ip:5000/hello-world

    4) docker push server-ip:5000/hello-world


    1) docker daemon --insecure-registry server-ip:5000

    2) docker pull server-ip:5000/hello-world

    Now you can pull/push from your remote repositories, for more detail of registry you can use this command docker inspect registry it will show where the imges get store and more info.

    Update docker config to add “–insecure-registry”, usually the file is located in /etc/default/docker, if you use docker-machine the file is located in /var/lib/boot2docker/profile

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