ERROR: Service 'caddy' failed to build: manifest for caddy/caddy:v1.0.4 not found

Hi All,

After deploying docker stack the service of monitoring_caddy is showing 0/1 that means container is restarting or excited below is logs of that container

How to solve below error

mohd@master-node:~/Music/Exception-Email-Notification/docker-elk$ tail -f /var/log/syslog | grep monitoring_caddy
May 18 18:37:06 master-node dockerd[24124]: time="2021-05-18T18:37:06.375762053+05:30" level=warning msg="failed to deactivate service binding for container monitoring_caddy.1.t58vtbroif3q2thqffwctcqmt" error="No such container: monitoring_caddy.1.t58vtbroif3q2thqffwctcqmt" module=node/agent node.id=kwpyr5ixo3xx6psp782zxtgre
May 18 18:37:11 master-node dockerd[24124]: time="2021-05-18T18:37:11.449848246+05:30" level=warning msg="failed to deactivate service binding for container monitoring_caddy.1.hy25gdcm77n5g8jyg3ezd1sb8" error="No such container: monitoring_caddy.1.hy25gdcm77n5g8jyg3ezd1sb8" module=node/agent node.id=kwpyr5ixo3xx6psp782zxtgre
May 18 18:37:23 master-node dockerd[24124]: time="2021-05-18T18:37:23.539386392+05:30" level=warning msg="failed to deactivate service binding for container monitoring_caddy.1.kra1h18errc8p9xfy9j10kx23" error="No such container: monitoring_caddy.1.kra1h18errc8p9xfy9j10kx23" module=node/agent node.id=kwpyr5ixo3xx6psp782zxtgre
May 18 18:37:39 master-node dockerd[24124]: time="2021-05-18T18:37:39.003306905+05:30" level=warning msg="failed to deactivate service binding for container monitoring_caddy.1.jb0v9d5y7y4on7bi13mkfgjiz" error="No such container: monitoring_caddy.1.jb0v9d5y7y4on7bi13mkfgjiz" module=node/agent node.id=kwpyr5ixo3xx6psp782zxtgre
May 18 18:37:47 master-node dockerd[24124]: time="2021-05-18T18:37:47.317473411+05:30" level=warning msg="failed to deactivate service binding for container monitoring_caddy.1.w3wlxsumjk0ez3ugdp33zye0l" error="No such container: monitoring_caddy.1.w3wlxsumjk0ez3ugdp33zye0l" module=node/agent node.id=kwpyr5ixo3xx6psp782zxtgre
May 18 18:37:53 master-node dockerd[24124]: time="2021-05-18T18:37:53.514228691+05:30" level=warning msg="failed to deactivate service binding for container monitoring_caddy.1.v61dxkk09exrfpc7bxjaf6md3" error="No such container: monitoring_caddy.1.v61dxkk09exrfpc7bxjaf6md3" module=node/agent node.id=kwpyr5ixo3xx6psp782zxtgre
^Z

Here is the
docker-compose.yml

version: "3.3"

volumes:
  certs: {}

services:
  caddy:
    build:
      context: .
      dockerfile: Dockerfile
      args:
        CADDY_VERSION: ${CADDY_VERSION:-0.10.9}
    image: openfaas/caddy:${CADDY_VERSION:-0.10.9}
    container_name: caddy
    ports:
      - 80:80
      - 443:443
      - 9180:9180
    volumes:
      - certs:/.caddy
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:80"]
      interval: 5s
      timeout: 1s
      retries: 3

Here is the
Dockerfile

FROM caddy/caddy:v1.0.4

COPY Caddyfile /etc/config/Caddyfile

Here is the Caddyfile

:80 {
    gzip
    browse
    prometheus 0.0.0.0:9180
    log stdout
    errors stderr

    ext .md
    markdown
}

even i have index file also
all files are in caddy-builder folder

When i try to create docker image i got error in terminal

CADDY_VERSION=0.10.9 docker-compose build caddy
Building caddy
Step 1/2 : FROM caddy/caddy:v1.0.4
ERROR: Service 'caddy' failed to build: manifest for caddy/caddy:v1.0.4 not found: manifest unknown: manifest unknown

i also try with this command

docker build -t openfaas/caddy:latest .
Sending build context to Docker daemon  84.48kB
Step 1/2 : FROM caddy/caddy:v1.0.4
manifest for caddy/caddy:v1.0.4 not found: manifest unknown: manifest unknown

Please help me out

Caddy v1 is EOL. Please upgrade to Caddy v2.

The official docker image is here: Docker Hub

what if i want to continue with Caddy v1

We don’t support Caddy v1 anymore because it’s EOL. It’s strongly recommended that you upgrade.

Thanks for replying

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