Closed Miladiir closed 1 year ago
Does it only happen for the rootless image version?
Yep, the others work as expected.
Edit: Actually the "normal" DinD version cannot pull images? It seems to download the layers but maybe runs into an error while extracting? Afterwards it complains, that the image does not exist, which is wrong because I can pull it on another machine. I tried again using the third option DoD and that seems to work now. Weird.
I have the exact same error. However, for me it does not work with rootless nor rootful DinD image. But I have to add, that I use rootless podman and podman-compose and not docker and docker-compose on my host.
Edit: running podman as root doesn't work either.
The same happened for me too. My config:
version: "2"
services:
gitea-app:
image: gitea/gitea:1.20
user: root:root
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=gitea-db:5432
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea
- GIT_DISCOVERY_ACROSS_FILESYSTEM=1
restart: always
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "2222:2222"
depends_on:
- gitea-db
gitea-db:
image: postgres:14
user: root:root
restart: always
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=gitea
- POSTGRES_DB=gitea
volumes:
- ./postgres:/var/lib/postgresql/data
gitea_act_runner:
user: root:root
image: vegardit/gitea-act-runner:dind-latest
privileged: true
volumes:
- ./gitea_runner/data:/data:rw
- ./gitea_runner/cache:/root/.cache
- ./data/git/repositories:/repo
- /var/run/docker.sock:/var/run/docker.sock:rw
environment:
- TZ=Europe/Moscow
- GITEA_INSTANCE_URL=gitea-app:3000
- GITEA_RUNNER_REGISTRATION_TOKEN=${RUNNER_TOKEN}
@sinitcin when using dind you cannot mount the docker socket from the host system, i.e. you need to remove this line:
- /var/run/docker.sock:/var/run/docker.sock:rw
@Miladiir the dind-rootless container tried to start docker without the rootless mode, I fixed that. please give it another try.
I used the vegardit/gitea-act-runner:dind-rootless-latest from Docker Hub. However, I still get the error.
podman log
:
My docker-compose.yml
:
@JeffersonTerrerfield I am not using podman, the image is targeting the docker runtime. However if you find anything useful to improve podman support, PRs are welcome.
Works now. Thanks
After starting the container, the docker engine within the container does not seem to start correctly.
docker-compose.yml:
Console output:
The last two lines are repeated endlessly. Any ideas?