Docker Warehouse Setup (Registry + Portus)

Source: Internet
Author: User
Tags git client

1. Installation of CentOS 7.2 (step slightly)

2. Update the system

Yum Update-y

3, Installation Docker-compose

Yum-y Install epel-release #pip安装包在epel源中yum-y install Python-pippip install-u docker-compose

4. Install the GIT client

Yum install-y git

5. Copy Portus installation program

git clone https://github.com/SUSE/Portus.git

6. Configure the Docker installation source

Vi/etc/yum.repos.d/docker.repo[dockerrepo]name=docker Repositorybaseurl=https://yum.dockerproject.org/repo/main /centos/$releasever/ENABLED=1GPGCHECK=1GPGKEY=HTTPS://YUM.DOCKERPROJECT.ORG/GPG


7. Install the Docker engine and start

Yum Cleal all && yum makecacheyum install-y docker-enginesystemctl start Docker.servicesystemctl enable docker.se Rvice


8, installation Portus

Registry, MARIADB, Rails, Ports_web, and several Docker images will be downloaded during the/compose-setup.sh -e 192.168.0.109# installation # If the network is not good, you can download the corresponding Docker image files first and then upload them to the Portus server and load them with the Docker load command. #镜像的具体版本号以实际为准. repository          tag                  IMAGE ID             CREATED              SIZEportus_web          latest               24a654206d8b         2 days ago          1.086  GBregistry            2.3.1                83139345d017        4 months ago         165.8 MBmariadb              10.0.23              93631b528e67        5 months ago         304.6 MBrails                4.2.2                99b347e4bbb4        13 months ago   &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;884.5&NBSP;MB after installation will give the appropriate login information and the client needs the operation sample ####################      success     ################### #Make  sure port 3000  And 5000 are oPen on host 192.168.0.109open http://192.168.0.109:3000 with your browser  and perform the following steps:  1. Create an admin  Account  2. you will be redirected to a page where you  have to register the registry. in this form:    -  choose a custom name for the registry.    - enter  192.168.0.109:5000 as the hostname.    - Do *not*  check the  "Use ssl"  checkbox, since this setup is not using  ssl. perform the following actions on the docker hosts that need  To interact with your registry:  - ensure the docker daemon  is started with the  '--insecure-registry 192.168.0.109:5000 '   - Perform  the docker login. To authenticate against your registry using the docker cli do:   $ docker login -u <portus username> -p <password>  -e <email> 192.168.0.109:5000To push an image to the  private registry:  $ docker pull busybox  $ docker tag  busybox 192.168.0.109:5000/<username>busybox  $ docker push  192.168.0.109:5000/<username>busybox

9. Open Firewall port

Firewall-cmd--zone=public--add-port=3000/tcp--permanentfirewall-cmd--zone=public--add-port=5000/tcp-- Permanentsystemctl Restart Firewall.service

10. Portus Initialization

Open Create default Admin user in Browser

650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M02/85/4E/wKiom1efhh2jb8x4AAFyZVdUIOY434.png "title=" image 1. PNG "alt=" Wkiom1efhh2jb8x4aafyzvduioy434.png "/>

Connect to this Docker repository (or other warehouses, must be registry 2.0 or higher)

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/85/4E/wKioL1efhjWBEWtqAABsLIPowb4301.png "style=" float: none; "title=" Image 2.png "alt=" Wkiol1efhjwbewtqaabslipowb4301.png "/>

10. Upload Image Test

Modify Execstart in file/lib/systemd/system/docker.service add--insecure-registry 192.168.0.109:5000 and restart Docker service

Systemctl daemon-reloadsystemctl Restart Docker.service

Check Docker service

# ps-ef|grep Insecure-registryroot 29486 1 0 01:32? 00:00:00/usr/bin/dockerd--insecure-registry 192.168.0.109:5000

Download the busybox image and upload it to a private repository (there is an action tip at the end of the installation)

Docker Pull BusyBox

Docker tag BusyBox 192.168.0.109:5000/admin/busybox

Docker login-u admin-p admin123 192.168.0.109:5000

Docker Push 192.168.0.109:5000/admin/busybox


Check the image information of the Portus interface

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/85/4E/wKiom1efimbyvVonAABPB0usLtI260.png-wh_500x0-wm_3 -wmp_4-s_3679380254.png "title=" image 3.png "alt=" Wkiom1efimbyvvonaabpb0uslti260.png-wh_50 "/>

11, server restart after processing

Should start first







Docker Warehouse Setup (Registry + Portus)

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.