File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,21 @@ cat /usr/local/lib/bk-configure-docker.sh
34
34
# shellcheck disable=SC1091
35
35
source /usr/local/lib/bk-configure-docker.sh
36
36
37
+ docker image ls
38
+
39
+ echo Installing qemu binfmt for multiarch...
40
+ if ! docker run \
41
+ --privileged \
42
+ --userns=host \
43
+ --rm \
44
+ --pull=never \
45
+ " tonistiigi/binfmt@${QEMU_BINFMT_DIGEST} " \
46
+ --install all; then
47
+ echo Failed to install binfmt
48
+ docker image ls
49
+ exit 1
50
+ fi
51
+
37
52
if [[ " ${DOCKER_USERNS_REMAP:- false} " == " true" ]]; then
38
53
echo Configuring user namespace remapping...
39
54
@@ -76,19 +91,6 @@ cat <<<"$(jq \
76
91
/etc/docker/daemon.json \
77
92
)" > /etc/docker/daemon.json
78
93
79
- echo Installing qemu binfmt for multiarch...
80
- if ! docker run \
81
- --privileged \
82
- --userns=host \
83
- --rm \
84
- --pull=never \
85
- " tonistiigi/binfmt@${QEMU_BINFMT_DIGEST} " \
86
- --install all; then
87
- echo Failed to install binfmt
88
- docker image ls
89
- exit 1
90
- fi
91
-
92
94
echo Cleaning up docker images...
93
95
systemctl start docker-low-disk-gc.service
94
96
You can’t perform that action at this time.
0 commit comments