harbor 2.1.3

2.1之后有代理缓存docker hub功能于是,找了个时间升级一波2.0升级2.1.3

cd /opt/harbor
docker-compose down
mkdir /backup
mv harbor /backup/harbor
cp -r /data/harbor-data/database /backup/
wget https://github.com/goharbor/harbor/releases/download/v2.1.1/harbor-offline-installer-v2.1.3.tgz
tar -xvf harbor-offline-installer-v2.1.3.tgz
mv harbor /opt/
cd /opt/harbor
vi harbor.yml
hostname: harbor.mvmyun.com
http:
  # port for http, default is 80. If https enabled, this port will redirect to https port
  port: 80

# https related config
https:
  # https port for harbor, default is 443
  port: 443
  # The path of cert and key files for nginx
  certificate: /etc/cert/mvmyun.com.pem
  private_key: /etc/cert/mvmyun.com.key

data_volume: /data/harbor-data
./prepare --with-notary --with-clair --with-chartmuseum
./install --with-notary --with-clair --with-chartmuseum
docker-compose -f docker-compose.yml up -d
docker-compose -f docker-compose.yml logs -f