1.系统基础设置,并升级内核到4.44
    1、系统初始化.pdf

    2.安装Docker
    官方安装文档: https://docs.docker.com/engine/install/centos/
    2.1 yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine
    2.2 yum install -y yum-utils
    yum-config-manager —add-repo https://download.docker.com/linux/centos/docker-ce.repo
    2.3 yum install docker-ce docker-ce-cli containerd.io
    2.4 systemctl start docker

    3.安装Harbor
    官方下载: https://github.com/goharbor/harbor/releases
    官方文档: https://goharbor.io/docs/2.0.0/install-config/
    3.1 wget https://github.com/goharbor/harbor/releases/download/v2.0.2/harbor-offline-installer-v2.0.2.tgz
    3.2 tar xvf harbor-offline-installer-v2.0.2.tgz
    3.3 修改配置文件harbor.yml 参数
    hostname
    certificate(path)
    private_key(path)
    3.4 生成私有key
    openssl genrsa -des3 -out server.key 2048
    openssl req -new -key server.key -out server.csr
    cp server.key server.key.org
    openssl rsa -in server.key.org -out server.key
    openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
    chmod a+x *
    3.5 ./install.sh
    3.6 在服务器上添加docker 仓库地址
    cat /etc/docker/daemon.json
    {
    “registry-mirrors”: [“https://harbor.avalongames.com“]
    }
    3.6 测试push
    docker pull hello-world
    docker tag hello-world harbor.avalon.com/avalon/hello-world
    docker push harbor.avalon.com/avalon/hello-world