ci: force IPv4 DNS in dind
This commit is contained in:
parent
8ac65a9ab0
commit
ef02f91c93
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -21,9 +21,20 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: DOCKER_TLS_CERTDIR
|
- name: DOCKER_TLS_CERTDIR
|
||||||
value: ""
|
value: ""
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
args:
|
args:
|
||||||
- --mtu=1400
|
- |
|
||||||
- --dns=10.43.0.10
|
set -euo pipefail
|
||||||
|
apk add --no-cache dnsmasq
|
||||||
|
cat > /etc/dnsmasq.conf <<'EOF'
|
||||||
|
filter-aaaa
|
||||||
|
server=10.43.0.10
|
||||||
|
EOF
|
||||||
|
dnsmasq
|
||||||
|
echo "nameserver 127.0.0.1" > /etc/resolv.conf
|
||||||
|
exec dockerd-entrypoint.sh --mtu=1400
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: dind-storage
|
- name: dind-storage
|
||||||
mountPath: /var/lib/docker
|
mountPath: /var/lib/docker
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user