2.7.2 on Docker Hub

Hi,

when I am building with

FROM caddy:2.7-builder-alpine AS builder

its pulling v2.7.0-beta.2


when I use

FROM caddy:2.7.2-builder-alpine AS builder

I get:
failed to solve: caddy:2.7.2-builder-alpine: docker.io/library/caddy:2.7.2-builder-alpine: not found

Has 2.7.2 been released on Docker Hub yet?
From the look of GH Actions it looks like yes, but how can I use it?

Right now it shows 2.7.2. But it also says it was pushed about an hour after you had posted your question here, so it’s hard to say what exactly the version was saying when you were trying to pull it.

yeah, its weird

this is what I get when I build with FROM caddy:2.7.2-builder-alpine AS builder

caddy  | caddy.HomeDir=/root
caddy  | caddy.AppDataDir=/data/caddy
caddy  | caddy.AppConfigDir=/config/caddy
caddy  | caddy.ConfigAutosavePath=/config/caddy/autosave.json
caddy  | caddy.Version=v2.7.0-beta.2.0.20230725185021-d7d16360d411 h1:Hq2Ph3i47imGFwMmyEb8g8ExG2G9ISJlQJ6R73ddb6E=
caddy  | runtime.GOOS=linux
caddy  | runtime.GOARCH=amd64
caddy  | runtime.Compiler=gc
caddy  | runtime.NumCPU=24
caddy  | runtime.GOMAXPROCS=24
caddy  | runtime.Version=go1.20.7
caddy  | os.Getwd=/srv
caddy  | 
caddy  | PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
caddy  | HOSTNAME=7673b12e31cf
caddy  | ADMIN_URL=bRs47jH13fdsBFMQ93
caddy  | DOMAIN=local.vfxtricks.com
caddy  | CADDY_VERSION=v2.7.2
caddy  | XDG_CONFIG_HOME=/config
caddy  | XDG_DATA_HOME=/data
caddy  | HOME=/root

It says v2.7.0-beta.2.0.20230725185021-d7d16360d411 and v2.7.2. So I am confused which one is it running.

This output is from --environ flag when I run Caddy

Weird. Is it possible that you have your build cached? Could you try docker build with --no-cache ?

This is my Caddy container:

~ # cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.18.2
PRETTY_NAME="Alpine Linux v3.18"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
~ #
~ # caddy environ
caddy.HomeDir=/root
caddy.AppDataDir=/data/caddy
caddy.AppConfigDir=/config/caddy
caddy.ConfigAutosavePath=/config/caddy/autosave.json
caddy.Version=v2.7.2 => github.com/caddyserver/caddy/v2@v2.7.2 h1:QqThyoyUFAv1B7A2NMeaWlz7xmgKqU49PXBX08A+6xg=
runtime.GOOS=linux
runtime.GOARCH=amd64
runtime.Compiler=gc
runtime.NumCPU=4
runtime.GOMAXPROCS=4
runtime.Version=go1.20.7
os.Getwd=/root

HOSTNAME=REDACTED
SHLVL=1
HOME=/root
OLDPWD=/srv
CADDY_VERSION=v2.7.2
PGID=100
TERM=xterm
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
XDG_CONFIG_HOME=/config
XDG_DATA_HOME=/data
PUID=REDACTED
PWD=/root
TZ=REDACTED
~ #

This is my Dockerfile

1 Like

ah! I didn’t notice that I had a commit version leftover in my Dockerfile

RUN xcaddy build d7d16360d41159a3bea772c36e795bab31503897

all good now, thank you for double checking for me!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.