docker harbor built using private warehouse

1. Download harbar-offline package

wget   https://storage.googleapis.com/harbor-releases/release-1.8.0/harbor-offline-installer-v1.8.0.tgz

tar  harbor-offline-installer-v1.8.0.tgz

 

2. Modify the harbor harbor.yml file directory

hostname: This host IP or domain name

 

3. Install docker-compose tool

yum install docker-compose  -y

 

4. Install lower harbor, harbor run the install script directory 

./install.sh # script to run after the harbor properly installed, you can open a web page

 

When scheduling docker container, use the default * .yml files in the current directory docker-compose, you can also specify the file location using the docker-compose -f file command

 

######################################

Self-built harbor using the http protocol Mirroring transport is to modify /etc/docker/daemon.json, and then restart the server docker

"insecure-registries": [ "IP:PORT" ]

 

Upload image:

1. Log

docker log IP

2. Local Mirror lay tag

docker tag nginx:stable-alpine 192.168.116.128/test/nginx:v-0.1

docker tag busybox 192.168.116.128/test/busybox:v-0.1

3. Upload

docker push 192.168.116.128/test/nginx back label indicates that no upload an entire warehouse all mirrors

docker push 192.168.116.128/test/busybox back label indicates that no upload an entire warehouse all mirrors

 

###############################

CPU resources compressible memory incompressible resources 

Guess you like

Origin www.cnblogs.com/chen-wg/p/10931007.html