Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

The qemu-version input is not getting used #220

Closed
shahidhs-ibm opened this issue Jun 25, 2020 · 1 comment
Closed

The qemu-version input is not getting used #220

shahidhs-ibm opened this issue Jun 25, 2020 · 1 comment
Labels

Comments

@shahidhs-ibm
Copy link

Behaviour

The qemu-version input is not getting used while installing QEMU static binaries. It always create qemu-user-static container with latest tag.

Steps to reproduce this issue

  1. Specify the qemu-version input in crazy-max/ghaction-docker-buildx GitHub Action:
    - name: Docker Buildx
      uses: crazy-max/ghaction-docker-buildx@v3
      with:
        buildx-version: v0.4.1
        qemu-version: 4.2.0-7
  1. Execute the build

Expected behaviour

This should run following command to install QEMU static binaries:
/usr/bin/docker run --rm --privileged multiarch/qemu-user-static:4.2.0-7 --reset -p yes --credential yes

Actual behaviour

Though it pulls the docker image for multiarch/qemu-user-static:4.2.0-7, it still tries to find image with latest tag and pulls it for running docker container:

💎 Installing QEMU static binaries...
/usr/bin/docker run --rm --privileged multiarch/qemu-user-static --reset -p yes --credential yes
Unable to find image 'multiarch/qemu-user-static:latest' locally
latest: Pulling from multiarch/qemu-user-static

Logs

Run crazy-max/ghaction-docker-buildx@v3
⬇️ Downloading https://github.com/docker/buildx/releases/download/v0.4.1/buildx-v0.4.1.linux-amd64...
🔨 Fixing perms...
📣 Buildx info
/usr/bin/docker buildx version
github.com/docker/buildx v0.4.1 bda4882a65349ca359216b135896bddc1d92461c
⬇️ Downloading qemu-user-static Docker image...
/usr/bin/docker pull -q multiarch/qemu-user-static:4.2.0-7
docker.io/multiarch/qemu-user-static:4.2.0-7
💎 Installing QEMU static binaries...
/usr/bin/docker run --rm --privileged multiarch/qemu-user-static --reset -p yes --credential yes
Unable to find image 'multiarch/qemu-user-static:latest' locally
latest: Pulling from multiarch/qemu-user-static
d9cbbca60e5f: Already exists
c5351f770467: Pulling fs layer
.
.
.
6cbaefe2d3dc: Download complete
6cbaefe2d3dc: Pull complete
Digest: sha256:96c2efd64db20bc326788773f6fa7cecef71b9d2c3de4c7d95a9910f38295c42
Status: Downloaded newer image for multiarch/qemu-user-static:latest
Setting /usr/bin/qemu-alpha-static as binfmt interpreter for alpha
Setting /usr/bin/qemu-arm-static as binfmt interpreter for arm
@crazy-max
Copy link
Owner

@shahidhs-ibm Should be fixed now. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants