Simplify steps to install Harbor CA cert on host docker daemon
This commit is contained in:
parent
6e07ea8d0f
commit
f51ac24c72
1 changed files with 1 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue