Skip to content

Instantly share code, notes, and snippets.

@thaim
Created August 11, 2018 09:49
Show Gist options
  • Save thaim/b49913bb468414a54656ff417280654e to your computer and use it in GitHub Desktop.
Save thaim/b49913bb468414a54656ff417280654e to your computer and use it in GitHub Desktop.
migrate harbor 1.1 to 1.2
db_pwd='root123'
harbor_db_path='/data/database'
harbor_cfg='/home/thaim/harbor-1.1.1/harbor.cfg'
tag='1.2'
docker run -it --rm \
-e DB_USR=root \
-e DB_PWD=${db_pwd} \
-v ${harbor_db_path}:/var/lib/mysql \
-v ${harbor_cfg}:/harbor-migration/harbor-cfg/harbor.cfg \
vmware/harbor-db-migrator:${tag} up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment