docker private registry harbor installation

A, harbor installation:

参考:Installation and Configuration Guide

1, the installation docker

2, the installation docker compose

  • sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  • sudo chmod +x /usr/local/bin/docker-compose
  • sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

3, download binary files:wget https://storage.googleapis.com/harbor-releases/harbor-offline-installer-v1.5.2.tgz

4, decompress:sudo tar xf harbor-offline-installer-v1.5.2.tgz -C /usr/local/

5. Edit: /usr/local/harbor/harbor.cfg

  • hostname: your machine name (can be obtained by hostname), or an IP address.
  • ui_url_protocol:http
  • max_job_workers: The maximum number of concurrent worker processes.

6, execute sudo ./install.sh

----Harbor has been installed and started successfully.----

7, check the port 80,443,4443 is in the listening state.

# netstat -tnl
tcp6       0      0 :::80                   :::*                    LISTEN
tcp6       0      0 :::6000                 :::*                    LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN
tcp6       0      0 ::1:631                 :::*                    LISTEN
tcp6       0      0 ::1:25                  :::*                    LISTEN
tcp6       0      0 ::1:6010                :::*                    LISTEN
tcp6       0      0 :::443                  :::*                    LISTEN
tcp6       0      0 :::4443                 :::*                    LISTEN

8, enter your own IP in the browser, harbor page should be displayed.

9, use [] admin username, password /usr/local/harbor/harbor.cfg in settings.

Second, use:

Must be performed in the directory where the file docker-compose.yml (/ usr / local / harbor) down.

  • Pause harbor

    sudo docker-compose pause

  • restore

    sudo docker-compose unpause

  • stop

    sudo docker-compose stop

  • start up

    sudo docker-compose start

c / c ++ mutual learning QQ group: 877 684 253

I micro letter: xiaoshitou5854

Guess you like

Origin www.cnblogs.com/xiaoshiwang/p/12014843.html