yum -y install docker
systemctl start docker
systemctl enable docker
systemctl status docker
docker version
yum -y install certbot libevent-devel gcc libffi-devel python-devel openssl-devel python2-pip
pip install --upgrade pip
pip install -U docker-compose
docker-compose version
wget https://storage.googleapis.com/harbor-releases/release-1.4.0/harbor-offline-installer-v1.4.0.tgz
tar -xf harbor-offline-installer-v1.4.0.tgz
cd harbor
vim harbor.cfg
hostname = ip
harbor_admin_password = 密码
./install.sh
harbor缓存远程docker镜像 execstrat增加insecure-registry配置
vi /usr/lib/systemd/system/docker.service
ExecStart=/usr/bin/dockerd-current /
--add-runtime docker-runc=/usr/libexec/docker/docker-runc-current /
--default-runtime=docker-runc /
--exec-opt native.cgroupdriver=systemd /
--userland-proxy-path=/usr/libexec/docker/docker-proxy-current /
--insecure-registry=192.168.6.233 /
$OPTIONS /
$DOCKER_STORAGE_OPTIONS /
$DOCKER_NETWORK_OPTIONS /
$ADD_REGISTRY /
$BLOCK_REGISTRY /
$INSECURE_REGISTRY/
$REGISTRIES
重启docker服务
systemctl daemon-reload
systemctl restart docker
systemctl status docker
关闭harbor
docker-compose stop
#docker-compose rm -f
启动harbor
docker-compose up -d
登录私有仓库账号
docker login http://ip:端口