fix: fully-qualify all image names for Podman without search registries
Podman without unqualified-search registries configured in /etc/containers/registries.conf refuses to resolve short image names. Prefix every image with docker.io/library/ (official images) or docker.io/<org>/ (third-party) so pulls succeed unconditionally. https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH
This commit is contained in:
parent
b23e02f2d2
commit
f50492f132
2 changed files with 7 additions and 7 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
# ── Build stage ───────────────────────────────────────────────────────────────
|
# ── Build stage ───────────────────────────────────────────────────────────────
|
||||||
# Run the compiler on the *build* host; cross-compile to target when needed.
|
# Run the compiler on the *build* host; cross-compile to target when needed.
|
||||||
FROM --platform=$BUILDPLATFORM rust:1.94-slim-bookworm AS builder
|
FROM --platform=$BUILDPLATFORM docker.io/library/rust:1.94-slim-bookworm AS builder
|
||||||
|
|
||||||
ARG BUILDPLATFORM
|
ARG BUILDPLATFORM
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
|
|
@ -60,7 +60,7 @@ RUN TARGET=$(cat /rust_target) && \
|
||||||
RUN cp /build/target/"$(cat /rust_target)"/release/hiy-server /usr/local/bin/hiy-server
|
RUN cp /build/target/"$(cat /rust_target)"/release/hiy-server /usr/local/bin/hiy-server
|
||||||
|
|
||||||
# ── Runtime stage ─────────────────────────────────────────────────────────────
|
# ── Runtime stage ─────────────────────────────────────────────────────────────
|
||||||
FROM debian:bookworm-slim
|
FROM docker.io/library/debian:bookworm-slim
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ services:
|
||||||
# rootful: /run/podman/podman.sock
|
# rootful: /run/podman/podman.sock
|
||||||
# rootless: /run/user/<UID>/podman/podman.sock (start.sh sets this)
|
# rootless: /run/user/<UID>/podman/podman.sock (start.sh sets this)
|
||||||
podman-proxy:
|
podman-proxy:
|
||||||
image: alpine/socat
|
image: docker.io/alpine/socat
|
||||||
command: tcp-listen:2375,fork,reuseaddr unix-connect:/podman.sock
|
command: tcp-listen:2375,fork,reuseaddr unix-connect:/podman.sock
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
|
|
@ -62,7 +62,7 @@ services:
|
||||||
|
|
||||||
# ── Shared Postgres ───────────────────────────────────────────────────────
|
# ── Shared Postgres ───────────────────────────────────────────────────────
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:16-alpine
|
image: docker.io/library/postgres:16-alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: hiy
|
POSTGRES_DB: hiy
|
||||||
|
|
@ -75,7 +75,7 @@ services:
|
||||||
|
|
||||||
# ── Reverse proxy ─────────────────────────────────────────────────────────
|
# ── Reverse proxy ─────────────────────────────────────────────────────────
|
||||||
caddy:
|
caddy:
|
||||||
image: caddy:2-alpine
|
image: docker.io/library/caddy:2-alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
|
|
@ -98,7 +98,7 @@ services:
|
||||||
# Enable with: podman compose --profile monitoring up -d
|
# Enable with: podman compose --profile monitoring up -d
|
||||||
gatus:
|
gatus:
|
||||||
profiles: [monitoring]
|
profiles: [monitoring]
|
||||||
image: twinproduction/gatus:latest
|
image: docker.io/twinproduction/gatus:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
|
|
@ -111,7 +111,7 @@ services:
|
||||||
# On rootless Podman some host mounts may be unavailable; comment out if so.
|
# On rootless Podman some host mounts may be unavailable; comment out if so.
|
||||||
netdata:
|
netdata:
|
||||||
profiles: [monitoring]
|
profiles: [monitoring]
|
||||||
image: netdata/netdata:stable
|
image: docker.io/netdata/netdata:stable
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "19999:19999"
|
- "19999:19999"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue