diff --git a/.github/README.md b/.github/README.md index c8bdd81..ab5244a 100644 --- a/.github/README.md +++ b/.github/README.md @@ -10,34 +10,4 @@ A [Woodpecker I](https://woodpecker-ci.org) prepared docker daemon. Also usable with Gitlab, Github or locally, see examples for usage. -## 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) | +For more documention see: [git.kokuwa.io/woodpecker/dockerd](https://git.kokuwa.io/woodpecker/dockerd) diff --git a/.woodpecker/test.yaml b/.woodpecker/test.yaml index cecac08..100c65e 100644 --- a/.woodpecker/test.yaml +++ b/.woodpecker/test.yaml @@ -28,3 +28,9 @@ steps: commands: docker pull bash environment: DOCKER_HOST: tcp://dockerd:2375 + + run: + image: kokuwaio/docker-cli + commands: docker run --rm bash uname -a + environment: + DOCKER_HOST: tcp://dockerd:2375 diff --git a/README.md b/README.md index ab5244a..c8bdd81 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,34 @@ A [Woodpecker I](https://woodpecker-ci.org) prepared docker daemon. 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) | diff --git a/entrypoint.sh b/entrypoint.sh index f279d72..ec5ac10 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,7 +7,7 @@ set -e; ## 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 COMMAND+=" --log-level=$DOCKERD_LOG_LEVEL" fi