Skip to content

Commit 6bf4d79

Browse files
committed
Cleanup error message when docker run fails
1 parent 2192ee6 commit 6bf4d79

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,16 @@ cat /usr/local/lib/bk-configure-docker.sh
3535
# shellcheck disable=SC1091
3636
source /usr/local/lib/bk-configure-docker.sh
3737

38-
docker image ls
39-
4038
echo Installing qemu binfmt for multiarch...
4139
if ! docker run \
4240
--privileged \
4341
--userns=host \
44-
--rm \
4542
--pull=never \
43+
--rm \
4644
"tonistiigi/binfmt@${QEMU_BINFMT_DIGEST}" \
4745
--install all; then
48-
echo Failed to install binfmt
46+
echo Failed to install binfmt.
47+
echo Avaliable docker images:
4948
docker image ls
5049
exit 1
5150
fi

0 commit comments

Comments
 (0)