1. Caddy version (caddy version
):
caddy:2.4.1-builder docker image
2. How I run Caddy:
a. System environment:
ubuntu-18.04
b. Command:
Github actions are used to build a docker image that has caddy-builder as its base image
jobs:
docker_image:
name: Docker image test and publishing
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build a multi-platform docker image and push
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
cache-to: mode=max,type=inline
load: false
push: ${{ github.repository_owner == 'femiwiki' && github.ref == 'refs/heads/main' }}
tags: |
ghcr.io/femiwiki/mediawiki:latest
* This is not the full workflow file.
c. Dockerfile
FROM --platform=$TARGETPLATFORM caddy:2.4.1-builder
ARG CADDY_MWCACHE_VERSION=0.0.1
RUN xcaddy build \
--with github.com/caddy-dns/route53 \
--with "github.com/femiwiki/caddy-mwcache@v${CADDY_MWCACHE_VERSION}"
* This is not the full dockerfile.
3. The problem I’m having:
Building a docker image using the above dockerfile falis
4. Error messages and/or full log output:
error: failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest sha256:822d98703fed6c19456bda86af28b0595669751d21587809428b412157ad3621: not found
Error: buildx call failed with: error: failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest sha256:822d98703fed6c19456bda86af28b0595669751d21587809428b412157ad3621: not found
5. Links to relevant resources:
-
caddy:2.4.0-builder
has linux/arm64/v8 as its OS/ARCH, but caddy:2.4.1-builder don’t. - dependabot’s failed PR on Github “Bump caddy from 2.4.0-builder to 2.4.1-builder”