up
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
# Manual Docker daemon configuration for insecure registry
|
||||
|
||||
## 1. Configure Docker daemon to allow HTTP registry
|
||||
|
||||
```bash
|
||||
# On your gitea-lxc host, run this once:
|
||||
sudo mkdir -p /etc/docker
|
||||
|
||||
# Create or update daemon.json
|
||||
sudo tee /etc/docker/daemon.json > /dev/null << 'EOF'
|
||||
{
|
||||
"insecure-registries": ["192.168.253.221:3000"]
|
||||
}
|
||||
EOF
|
||||
|
||||
# Restart Docker daemon
|
||||
sudo systemctl restart docker
|
||||
|
||||
# Wait for Docker to restart
|
||||
sleep 5
|
||||
|
||||
# Verify Docker is running
|
||||
sudo systemctl status docker
|
||||
```
|
||||
|
||||
## 2. Test local registry push manually
|
||||
|
||||
```bash
|
||||
# Test login to local registry
|
||||
docker login 192.168.253.221:3000
|
||||
|
||||
# Test push
|
||||
docker pull hello-world
|
||||
docker tag hello-world 192.168.253.221:3000/jskala/test:latest
|
||||
docker push 192.168.253.221:3000/jskala/test:latest
|
||||
```
|
||||
|
||||
## 3. Then run your workflow
|
||||
|
||||
After configuring the daemon manually, the workflow should work without needing to modify daemon.json.
|
||||
Reference in New Issue
Block a user