docker-gitea-act-runner icon indicating copy to clipboard operation
docker-gitea-act-runner copied to clipboard

Insecure registries using dind

Open lyleubben opened this issue 1 year ago • 1 comments

I was trying to do a POC on a local private network without SSL. Using docker out of docker works because I added the insecure registry to the host docker json. When using DIND though I can't get it to set the insecure registry.

I tried adding a build step

    - name: Set up Docker Buildx
      uses: docker/setup-buildx-action@v3
      with:
        cache-binary: false
        config-inline: |
          [registry."localip:port"]
            http = true
            insecure = true

but the output only shows:

Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false

Do you know where the docker json is stored on the embedded docker in the runner image so I can add the insecure registry?

lyleubben avatar Sep 30 '24 02:09 lyleubben