Posted on

I've added some sanity checks my common Github Actions when I build Docker containers to run the -h of a tool after building the image. I've a couple times been bitten by shared lib versions across build vs runtime base images. This at least verifies that the binary is in place and works!

- name: Build
  uses: docker/build-push-action@v6
  with:
    platforms: ${{ inputs.docker_platforms }}
    context: ${{ inputs.context }}

    cache-from: type=gha
    cache-to: type=gha,mode=max

    load: true
    tags: local-build:${{ github.sha }}

    push: false

- name: Check Container
  if: inputs.check_command != ''
  run: |
      docker run local-build:${{ github.sha }} ${{ inputs.check_command }}

Posted on

I'm running into this issue with my local Docker Registry where things seem corrupted after a garbage collect. I though it was how I was deleting multi-arch images, but maybe not! I'm just disabling garbage collection for now in my system.

Filed under: docker