Harbor是企業級的私有Docker Repository,提供管理使用者介面、角色存取控制等企業級特性。
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add
sudo apt-get update
sudo apt-get install docker-ce
sudo curl -L "https://github.com/docker/compose/release/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
wget https://github.com/goharbor/harbor/releases/download/v2.0.0/harbor-online-installer-v2.0.0.tgz
tar xvf harbor-online-installer-v2.0.0.tgz
sudo ./install.sh
vi /etc/rc.local
cd /usr/local/harbor && docker-compose up -d