1
Some checks failed
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test/1 Pipeline failed
ci/woodpecker/pr/test/2 Pipeline failed

This commit is contained in:
Stephan Schnabel 2025-06-19 13:57:54 +02:00
parent 95758ae890
commit e0d0b74d3e
Signed by: stephan.schnabel
SSH key fingerprint: SHA256:99zuzxNGFb5/5P+E/O7ONU2qhUojUe/D8rIPTW+9Xp0
4 changed files with 39 additions and 33 deletions

32
.github/README.md vendored
View file

@ -10,34 +10,4 @@
A [Woodpecker I](https://woodpecker-ci.org) prepared docker daemon. A [Woodpecker I](https://woodpecker-ci.org) prepared docker daemon.
Also usable with Gitlab, Github or locally, see examples for usage. Also usable with Gitlab, Github or locally, see examples for usage.
## Features For more documention see: [git.kokuwa.io/woodpecker/dockerd](https://git.kokuwa.io/woodpecker/dockerd)
- includes rootless
- configures mirror for dockerd
## Example
```yaml
services:
- name: dockerd
image: kokuwaio/dockerd
ports: [2375, 8080]
steps:
info:
image: kokuwaio/docker-cli
commands: docker info
environment:
DOCKER_HOST: tcp://dockerd:2375
```
## Settings
| Environment | Default | Description |
| ------------------------- | ------- | ---------------------------------------------------------------------------------- |
| DOCKERD_PORT | `2375` | Specifies the port to listen on |
| DOCKERD_SHUTDOWN_TIMEOUT | `0` | Set the default shutdown timeout |
| DOCKERD_LOG_LEVEL | `none` | Set the [logging level](https://docs.docker.com/reference/cli/dockerd/#log-format) |
| DOCKERD_REGISTRY_MIRROR | `none` | Specifies a list of registry mirrors. |
| DOCKERD_INSECURE_REGISTRY | `none | Configure [insecure registry](https://docs.docker.com/reference/cli/dockerd/#insecure-registries) |

View file

@ -28,3 +28,9 @@ steps:
commands: docker pull bash commands: docker pull bash
environment: environment:
DOCKER_HOST: tcp://dockerd:2375 DOCKER_HOST: tcp://dockerd:2375
run:
image: kokuwaio/docker-cli
commands: docker run --rm bash uname -a
environment:
DOCKER_HOST: tcp://dockerd:2375

View file

@ -10,4 +10,34 @@
A [Woodpecker I](https://woodpecker-ci.org) prepared docker daemon. A [Woodpecker I](https://woodpecker-ci.org) prepared docker daemon.
Also usable with Gitlab, Github or locally, see examples for usage. Also usable with Gitlab, Github or locally, see examples for usage.
For more documention see: [git.kokuwa.io/woodpecker/dockerd](https://git.kokuwa.io/woodpecker/dockerd) ## Features
- includes rootless
- configures mirror for dockerd
## Example
```yaml
services:
- name: dockerd
image: kokuwaio/dockerd
ports: [2375, 8080]
steps:
info:
image: kokuwaio/docker-cli
commands: docker info
environment:
DOCKER_HOST: tcp://dockerd:2375
```
## Settings
| Environment | Default | Description |
| ------------------------- | ------- | ---------------------------------------------------------------------------------- |
| DOCKERD_PORT | `2375` | Specifies the port to listen on |
| DOCKERD_SHUTDOWN_TIMEOUT | `0` | Set the default shutdown timeout |
| DOCKERD_LOG_LEVEL | `none` | Set the [logging level](https://docs.docker.com/reference/cli/dockerd/#log-format) |
| DOCKERD_REGISTRY_MIRROR | `none` | Specifies a list of registry mirrors. |
| DOCKERD_INSECURE_REGISTRY | `none | Configure [insecure registry](https://docs.docker.com/reference/cli/dockerd/#insecure-registries) |

View file

@ -7,7 +7,7 @@ set -e;
## build command to execute ## build command to execute
## ##
COMMAND="dockerd --rootless --host=0.0.0.0:${DOCKERD_PORT:-2375} --tls=false --data-root=/woodpecker/docker --shutdown-timeout=${DOCKERD_SHUTDOWN_TIMEOUT:-0} --feature=buildkit=true --feature=containerd-snapshotter=true" COMMAND="dockerd --rootless --host=0.0.0.0:${DOCKERD_PORT:-2375} --tls=false --data-root=/home/docker --shutdown-timeout=${DOCKERD_SHUTDOWN_TIMEOUT:-0} --feature=buildkit=true --feature=containerd-snapshotter=true"
if [[ -n "$DOCKERD_LOG_LEVEL" ]]; then if [[ -n "$DOCKERD_LOG_LEVEL" ]]; then
COMMAND+=" --log-level=$DOCKERD_LOG_LEVEL" COMMAND+=" --log-level=$DOCKERD_LOG_LEVEL"
fi fi