1
This commit is contained in:
parent
e1ebdb3eb6
commit
40bdd6eca6
12 changed files with 366 additions and 306 deletions
|
@ -9,19 +9,19 @@ set -e;
|
|||
|
||||
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"
|
||||
if [[ "${DOCKERD_ROOTLESS:-true}" == "true" ]]; then
|
||||
COMMAND="$COMMAND "
|
||||
COMMAND+=" "
|
||||
fi
|
||||
if [[ -n "$DOCKERD_LOG_LEVEL" ]]; then
|
||||
COMMAND="$COMMAND --log-level=$DOCKERD_LOG_LEVEL"
|
||||
COMMAND+=" --log-level=$DOCKERD_LOG_LEVEL"
|
||||
fi
|
||||
if [[ -n "$DOCKERD_REGISTRY_MIRROR" ]]; then
|
||||
COMMAND="$COMMAND --registry-mirror=$DOCKERD_REGISTRY_MIRROR"
|
||||
COMMAND+=" --registry-mirror=$DOCKERD_REGISTRY_MIRROR"
|
||||
if [[ "$DOCKERD_REGISTRY_MIRROR" =~ ^http:\/\/.*$ ]]; then
|
||||
COMMAND="$COMMAND --insecure-registry=${DOCKERD_REGISTRY_MIRROR//http:\/\//}"
|
||||
COMMAND+=" --insecure-registry=${DOCKERD_REGISTRY_MIRROR//http:\/\//}"
|
||||
fi
|
||||
fi
|
||||
if [[ -n "$DOCKERD_INSECURE_REGISTRY" ]]; then
|
||||
COMMAND="$COMMAND --insecure-registry=$DOCKERD_INSECURE_REGISTRY"
|
||||
COMMAND+=" --insecure-registry=$DOCKERD_INSECURE_REGISTRY"
|
||||
fi
|
||||
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue