harbor部署
docker访问私有harbor配置
配置证书
mkdir -p ~/.docker/tls/192.168.44.158/
scp 192.168.44.158:~/.docker/tls/192.168.44.158/ca.crt ~/.docker/tls/192.168.44.158/
sudo cp ~/.docker/tls/192.168.44.158/ca.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates
配置docker daemon
sudo vi /etc/docker/daemon.json
追加
"insecure-registries": ["192.168.44.158"]
sudo systemctl daemon-reload
sudo systemctl restart docker
如果有warning
Updating certificates in /etc/ssl/certs...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "zh_CN:zh",
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "zh_CN.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("zh_CN.UTF-8").
执行这里即可
export LC_CTYPE=C