Build Docker Private Library (Docker Registry) (GO)

Source: Internet
Author: User
Tags docker run docker registry

Create a Docker Private library (Docker registry) Blog Category:
    • Docker

My goal is still no internet installation, the deployment of the internal Docker Private library, the current Docker image acquisition or need the Internet, the downloaded Docker image is published to the internal private library (can be in the Internet when the container into a tar package, in the offline situation using the reference " Package Docker images and use file import).

1. Use Fedora (IP as the test server (CentOS 7,redhat 7 General)

2. Installing Docker

Java code
    1. Yum-y Install Docker-io Docker-registry

Specifically, the Fedora Update Docker 1.3.1 submitted to the local library is problematic and there is no problem with 1.3.0 Docker. If you update the version later, follow the steps above

Java code
    1. Yum-y Install

3. Start and maintain boot, install Docker registry

Java code
    1. Systemctl Start Docker
    2. Systemctl Start Docker-registry
    3. Systemctl Enable Docker
    4. Systemctl Enable Docker-registry

Java code
    1. Docker run-p :Registry

4. Download the CentOS image online

Java code
    1. Docker Pull CentOS

Execute after download is complete

Java code
    1. Docker images

5. Make the image tag

Java code
    1. Docker tag img_id localhost.localdomain:5000/centos_local

6. Push Mirror to local library

Java code
    1. Docker push Localhost.localdomain:5000/centos_local

7, the client to download the image

Java code
    1. Docker pull 192.168. 1.103:5000/centos_local

10. Accomplished

Build Docker Private Library (Docker Registry) (GO)

Related Article

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: 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.