harbor arm架构机器容器化部署
docker-compose arm架构二进制安装
https://github.com/docker/compose/releases
https://github.com/docker/compose/releases/download/v2.25.0/docker-compose-linux-aarch64
安装docker-compose
sudo cp docker-compose-linux-aarch64 /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
查看docker-compose版本
docker-compose -v
https://github.com/goharbor/harbor/releases
https://github.com/goharbor/harbor/releases/download/v2.10.1/harbor-offline-installer-v2.10.1.tgz
加载需要的容器镜像到宿主机
docker load -i harbor.v2.10.1.tar.gz
安装harbor
cp harbor.yml.tmpl harbor.yml
修改harbor.yml的hostname 和访问port
hostname: reg.mydomain.com
http:
port: 80
注释掉https信息配置
https:
port: 443
certificate: /your/certificate/path
private_key: /your/private/key/path
执行安装 ./install.sh即可
卸载harbor,注释掉install.sh文件中下面两行
#h2 "[Step $item]: starting Harbor ..."
#$DOCKER_COMPOSE up -d
执行./prepare 清理数据
执行./install.sh 卸载容器