Deployment environment
- Centos7.3 x64
- docker-ce-17.06.0
- docker-compose-1.15.0
- Python-2.7.5 (System default)
Docker and Docker-compose installation
Yum install-y yum-utils device-mapper-persistent-data lvm2 Yum-config-manager --add-Repo https://download.docker.com/linux/centos/docker-ce.repo yum-config-manager--enable docker-ce- Edge Yum Makecache fast systemctl start Docker -L https://github.com/docker/compose/releases/download/1.15.0/docker-compose-' uname-s '-' uname-m ' >/usr/local/ bin/docker-+x/usr/local/bin/docker-compose
Habor Deployment Configuration
wget https://github.com/vmware/harbor/releases/download/v1.1.2/harbor-offline-installer-v1.1.2. Tgztar XF Harbor-offline-installer-v1.1.2. TGZCD Harbor/= hub.wow Other default (HTTP protocol). /install.sh can be accessed via http://hub.wow/after successful installation
Docker clients use
Due to the HTTP protocol used by harbor, the Dockerd service on the Docker client needs to be increased –insecure-registry hub.wow
CENTOS7 modified in the following way:
vim/lib/systemd/system/docker.serviceexecstart=/usr/bin/dockerd--insecure-Registry Hub.wow Systemctl Daemon-reloadsystemctl Reload Docker
[[email protected] harbor]#Docker login-u admin-p Harbor12345 hub.wowofficial warehouse Download BusyBox Mirror [[email Protected]alhost Harbor]#Docker Pull BusyBox[[email protected] harbor]#Docker ImagesREPOSITORY TAG IMAGE ID CREATED sizebusybox latest efe10ee6727f2 weeks ago 1. 13MB local-based busybox:latest create tag Hub.wow/Busybox:latest[[email protected] Harbor]#Docker tag Busybox:latest hub.wow/project_name/busybox:latestPush Local mirror busybox:latest to Hub.wow private warehouse [[email protected] Harbor]#Docker push Hub.wow/project_name/busybox:latest
Harbor Service Management
CD harbor/Docker-compose-f/docker-compose.yml [Up|down|ps|stop|start]
Harbor deployment of enterprise-class Docker private warehouses (HTTP)