1
This commit is contained in:
parent
95758ae890
commit
e0d0b74d3e
4 changed files with 39 additions and 33 deletions
32
.github/README.md
vendored
32
.github/README.md
vendored
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
32
README.md
32
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) |
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue