Files
nfoguard/configure-docker-insecure.md
T
2025-09-09 16:37:49 -04:00

40 lines
891 B
Markdown

# 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.