act_runner configure insecure registry #11984

Closed
opened 2025-11-02 09:53:35 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @Demmtop on GitHub (Nov 9, 2023).

Feature Description

I builded a self image from gitea/act_runner:latest-dind-rootless. I added /etc/docker/daemon.json. This file contains the docker insecure registrie definition.
It doesn't work.
What is the right way for this problem.

This is my build.yaml

jobs:
  build:
    runs-on: "self-hosted"
    container:
      image: nexus.development:8082/maven:3.9.5
    steps:
      - uses: actions/checkout@v4
      - name: "Maven build"
        run: mvn clean install

This are the messages from "Set up job"

gitea-runner(version:v0.2.6) received task 13 of job 7, be triggered by event: push
workflow prepared
evaluating expression 'success()'
expression 'success()' evaluated to 'true'
🚀  Start image=nexus.development:8082/maven:3.9.5
  🐳  docker pull image=nexus.development:8082/maven:3.9.5 platform= username= forcePull=false
  🐳  docker pull nexus.development:8082/maven:3.9.5
Image exists? false
pulling image 'nexus.development:8082/maven:3.9.5' ()
Error response from daemon: Get "https://nexus.development:8082/v2/": http: server gave HTTP response to HTTPS client

Screenshots

No response

Originally created by @Demmtop on GitHub (Nov 9, 2023). ### Feature Description I builded a self image from gitea/act_runner:latest-dind-rootless. I added /etc/docker/daemon.json. This file contains the docker insecure registrie definition. It doesn't work. What is the right way for this problem. This is my build.yaml ``` jobs: build: runs-on: "self-hosted" container: image: nexus.development:8082/maven:3.9.5 steps: - uses: actions/checkout@v4 - name: "Maven build" run: mvn clean install ``` This are the messages from "Set up job" ``` gitea-runner(version:v0.2.6) received task 13 of job 7, be triggered by event: push workflow prepared evaluating expression 'success()' expression 'success()' evaluated to 'true' 🚀 Start image=nexus.development:8082/maven:3.9.5 🐳 docker pull image=nexus.development:8082/maven:3.9.5 platform= username= forcePull=false 🐳 docker pull nexus.development:8082/maven:3.9.5 Image exists? false pulling image 'nexus.development:8082/maven:3.9.5' () Error response from daemon: Get "https://nexus.development:8082/v2/": http: server gave HTTP response to HTTPS client ``` ### Screenshots _No response_
GiteaMirror added the type/proposal label 2025-11-02 09:53:35 -06:00
Author
Owner

@lng2020 commented on GitHub (Nov 10, 2023):

You should configure the daemon.json in your act runner container since you are using dind.

@lng2020 commented on GitHub (Nov 10, 2023): You should configure the daemon.json **in** your act runner container since you are using **dind**.
Author
Owner

@yp05327 commented on GitHub (Nov 10, 2023):

I added /etc/docker/daemon.json

Where did you add daemon.json? In your custom docker image or mount a local file in the host?

And where's your docker engine running? In your custom docker image(docker in docker) or mount docker.sock in the host.

@yp05327 commented on GitHub (Nov 10, 2023): > I added /etc/docker/daemon.json Where did you add daemon.json? In your custom docker image or mount a local file in the host? And where's your docker engine running? In your custom docker image(docker in docker) or mount `docker.sock` in the host.
Author
Owner

@Demmtop commented on GitHub (Nov 10, 2023):

Where did you add daemon.json? In your custom docker image or mount a local file in the host?

I added the daemon.json over COPY statement in the docker image.
I played with my docker file and now it works.

@Demmtop commented on GitHub (Nov 10, 2023): > Where did you add daemon.json? In your custom docker image or mount a local file in the host? I added the daemon.json over COPY statement in the docker image. I played with my docker file and now it works.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11984