搭建Docker私有仓库Harbor

    技术2022-07-10  144

    1.安装、运行docker 这个就省略,之前文章中有的!

    2.安装docker-compose

    sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/dockercompose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose

    或者这个

    curl -L https://get.daocloud.io/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose

    3.赋予对应权限

    sudo chmod +x /usr/local/bin/docker-compose

    4.查看是否安装成功

    docker-compose -version

    5.下载Harbor的压缩包 下载地址 6.解压安装

    tar -xzf harbor-offline-installer-v2.0.1tg

    解压后得到harbor目录

    7.修改harbor.ym配置文件

    vi harbor.ym

    8.预启动

    ./prepare

    9.启动

    ./install.sh

    启动后会多这些容器

    10访问测试

    Processed: 0.031, SQL: 9