1、下载harbor

    1. # --在线安装包
    2. # wget https://storage.googleapis.com/harbor-releases/release-1.7.0/harbor-online-installer-v1.7.1.tgz
    3. # --离线安装包
    4. # wget https://storage.googleapis.com/harbor-releases/release-1.7.0/harbor-offline-installer-v1.7.1.tgz
    5. # tar xf harbor-offline-installer-v1.7.1.tgz

    2、安装docker-compose

    1. # curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    2. # chmod +x /usr/local/bin/docker-compose
    3. # --官网安装地址
    4. # https://docs.docker.com/compose/install/

    3、安装harbor

    1. # cd harbor && ./install.sh


    4、登录WEB

    1. # 账户密码
    2. admin Harbor12345

    5、配置client的daemon.json

    1. {
    2. "registry-mirrors": ["https://5uuoznyf.mirror.aliyuncs.com"],
    3. "insecure-registries": [ "119.3.203.232"]
    4. }

    6、client登录

    1. [root@ecs-5704-0003 docker]# docker login 119.3.203.232
    2. Username: admin
    3. Password:
    4. Login Succeeded

    7、打标签,上传

    1. # docker tag docker.io/busybox:latest 119.3.203.232/joker/busybox:v1
    2. # docker push 119.3.203.232/joker/busybox:v1