Simplify steps to install Harbor CA cert on host docker daemon

This commit is contained in:
continuist 2025-07-01 00:40:09 -04:00
parent 6e07ea8d0f
commit f51ac24c72

View file

@ -547,21 +547,10 @@ sudo chmod 644 /etc/ssl/registry/openssl.conf
sudo cp /etc/ssl/registry/registry.crt /usr/local/share/ca-certificates/registry.crt
sudo update-ca-certificates
# Configure Docker to trust the Harbor registry
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json << EOF
{
"insecure-registries": ["YOUR_CI_CD_IP"],
"registry-mirrors": []
}
EOF
# Restart Docker to apply the new configuration
# Restart Docker to ensure it picks up the new CA certificates
sudo systemctl restart docker
```
**Important**: Replace `YOUR_CI_CD_IP` with your actual CI/CD Linode IP address.
#### 5.4 Install Harbor
```bash