Skip to content

Commit 747faec

Browse files
committed
Fix docker run does not recognize previously pulled image
When you pull an image from a registry and specify both a tag and a digest, docker does not seem to tag it locally. This leaves the image unable to be run if both the tag and the digest are specified to `docker run`. But it will run if only by the digest is specified.
1 parent 50b2358 commit 747faec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ if ! docker run \
8181
--userns=host \
8282
--rm \
8383
--pull=never \
84-
"tonistiigi/binfmt:${QEMU_BINFMT_TAG}" \
84+
"tonistiigi/binfmt@${QEMU_BINFMT_DIGEST}" \
8585
--install all; then
8686
echo Failed to install binfmt
8787
docker image ls

0 commit comments

Comments
 (0)