How to mirror an image from Docker to a private registry

Source: Internet
Author: User

Docker is becoming more and more popular, and if your team is ready to start using Docker, then a private repository is essential, first of all to help you speed up the pull image from the server, and, second, to help you store a private image. This article is about how to open a images backup from a public server to a local private server.

An example of Ubuntu image in index is downloaded from the official Index server .

Docker pull Ubuntu
View existing Images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
Ubuntu 13.10 9f676bd305a4 5 weeks ago 178 MB
Ubuntu Saucy 9f676bd305a4 5 weeks ago 178 MB
Ubuntu Raring Eb601b8965b8 5 weeks ago 166.5 MB
Ubuntu 13.04 Eb601b8965b8 5 weeks ago 166.5 MB
Ubuntu 12.10 5ac751e8d623 5 weeks ago 161 MB
Ubuntu Quantal 5ac751e8d623 5 weeks ago 161 MB
Ubuntu 10.04 9cc9ea5ea540 5 weeks ago 180.8 MB
Ubuntu Lucid 9cc9ea5ea540 5 weeks ago 180.8 MB
Ubuntu 12.04 9cd978db300e 5 weeks ago 204.4 MB
Ubuntu Latest 9cd978db300e 5 weeks ago 204.4 MB
Ubuntu Precise 9cd978db300e 5 weeks ago 204.4 MB

Generally speaking, we will use the latest version of Ubuntu, you can find multiple tags corresponding to the same image,tag is just a name. tag for image that needs to be push to private registry

Docker tag 9cd978db300e Rd-server:5000/ubuntu

We can perform Docker images viewing effects

REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
Ubuntu 13.10 9f676bd305a4 5 weeks ago 178 MB
Ubuntu Saucy 9f676bd305a4 5 weeks ago 178 MB
Ubuntu Raring Eb601b8965b8 5 weeks ago 166.5 MB
Ubuntu 13.04 Eb601b8965b8 5 weeks ago 166.5 MB
Ubuntu 12.10 5ac751e8d623 5 weeks ago 161 MB
Ubuntu Quantal 5ac751e8d623 5 weeks ago 161 MB
Ubuntu 10.04 9cc9ea5ea540 5 weeks ago 180.8 MB
Ubuntu Lucid 9cc9ea5ea540 5 weeks ago 180.8 MB
Ubuntu 12.04 9cd978db300e 5 weeks ago 204.4 MB
Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.