File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ set -euo pipefail
4
4
DISK_MIN_AVAILABLE=${DISK_MIN_AVAILABLE:- 5242880} # 5GB
5
5
DISK_MIN_INODES=${DISK_MIN_INODES:- 250000} # docker needs lots
6
6
7
- DOCKER_DIR=" / var/lib/docker/ "
7
+ DOCKER_DIR=" $( jq -r ' ."data-root" // "/ var/lib/docker" ' /etc/docker/daemon.json ) "
8
8
9
9
disk_avail=$( df -k --output=avail " $DOCKER_DIR " | tail -n1)
10
10
Original file line number Diff line number Diff line change 20
20
21
21
# Move docker root to the ephemeral device
22
22
if [[ " ${BUILDKITE_ENABLE_INSTANCE_STORAGE:- false} " == " true" ]] ; then
23
- cat <<< " $(jq '.data-root=" /mnt/ephemeral/docker" ' /etc/docker/daemon.json)" > /etc/docker/daemon.json
23
+ cat <<< " $(jq '." data-root" =" /mnt/ephemeral/docker" ' /etc/docker/daemon.json)" > /etc/docker/daemon.json
24
24
fi
You can’t perform that action at this time.
0 commit comments