Skip to content

Commit 80f2dc9

Browse files
authored
Merge pull request #968 from range-me/add-subnet-customisation
Allow Docker address pool customisation
2 parents 66b459b + 1ec6279 commit 80f2dc9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packer/linux/conf/bin/bk-configure-docker.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ fi
2222
if [[ "${BUILDKITE_ENABLE_INSTANCE_STORAGE:-false}" == "true" ]] ; then
2323
cat <<< "$(jq '."data-root"="/mnt/ephemeral/docker"' /etc/docker/daemon.json)" > /etc/docker/daemon.json
2424
fi
25+
26+
# Customise address pools
27+
cat <<<"$(jq '."default-address-pools"=[{"base":"172.17.0.0/12","size":20},{"base":"192.168.0.0/16","size":24}]' /etc/docker/daemon.json)" >/etc/docker/daemon.json

0 commit comments

Comments
 (0)