CentOS7 安装Harbor1.1.2教程

  • A+
所属分类:Linux

 

1:安装docker

# sudo yum install -y yum-utils device-mapper-persistent-data lvm2

# sudo yum-config-manager \
--add-repo\
https://download.docker.com/linux/centos/docker-ce.repo

#sudo yum install docker-ce

sudo systemctl start docker

2:安装Docker-Compose

#curl -L https://github.com/docker/compose/releases/download/1.14.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose

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

3:安装Harbor

wget https://github.com/vmware/harbor/releases/download/v1.1.2/harbor-online-installer-v1.1.2.tgz

tar xvf harbor-online-installer-v1.1.2.tgz

cd harbor

#sudo ./prepare

docker-compose up -d

4:完成后

http://192.168.0.209/
正常访问
用户名:admin
密码:Harbor12345
可以执行如下的命令进行停止和启动

停止

#docker-compose stop

启动

#docker-compose start

 

 

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: