#2404·watchtower

[Bug]:msg="Updated container state to failed" error="failed to create container: failed to create container: Error response from daemon: No such container

Author: marmar76Created Sep 18, 2026Updated Sep 18, 2026
Labelsbug

Bug Report Checklist

  • I checked existing issues and found no duplicates.
  • I have reviewed Watchtower's documentation and confirmed compliance with documented configuration specifications.
  • I have restarted Docker, re-pulled the latest image, and confirmed that the issue persists.

Bug Description

The watchtower checking the image update, then it update all the image, but in the process, it delete the container, cannot create the container back, with error: No such container, note this is always happened on the nextcloud nginx

Steps to Reproduce

  1. Wait the watchtower start
  2. The watchtower check, confirmed there is a new image
  3. watchtower stop the container, then start the nginx container
  4. it failed

Expected Behavior

It can update any other container without error, but it always error on this specific container

Watchtower Version

latest

Docker Version

bash
marmar@Alien:~/nextcloud$ docker version
Client: Docker Engine - Community
 Version:           28.1.1
 API version:       1.49
 Go version:        go1.23.8
 Git commit:        4eba377
 Built:             Fri Apr 18 09:52:18 2025
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          28.1.1
  API version:      1.49 (minimum version 1.24)
  Go version:       go1.23.8
  Git commit:       01f442b
  Built:            Fri Apr 18 09:52:18 2025
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.27
  GitCommit:        05044ec0a9a75232cad458027ca83437aae3f4da
 runc:
  Version:          1.2.5
  GitCommit:        v1.2.5-0-g59923ef
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Docker Info (optional)

bash
marmar@Alien:~/nextcloud$ docker info
Client: Docker Engine - Community
 Version:    28.1.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.23.0
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.35.1
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 21
  Running: 11
  Paused: 0
  Stopped: 10
 Images: 21
 Server Version: 28.1.1
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 05044ec0a9a75232cad458027ca83437aae3f4da
 runc version: v1.2.5-0-g59923ef
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
 Kernel Version: 5.15.0-164-generic
 Operating System: Ubuntu 20.04.6 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 7.658GiB
 Name: Alien
 ID: 4d603440-4f16-40d8-8e2f-284db3346925
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  ::1/128
  127.0.0.0/8
 Live Restore Enabled: false

Docker Compose Configuration

yaml

Docker CLI Command

bash
docker run --detach \
    --name watchtower \
    --volume /var/run/docker.sock:/var/run/docker.sock \
    nickfedor/watchtower
following the guide

Debug Logs

time=2026-09-17T02:44:43Z level=info msg="Found new image" container=portainer image=portainer/portainer-ce:lts new_id=dda734886443 time=2026-09-17T02:44:51Z level=info msg="Stopping container" container=portainer id=b72c30e69019 signal=SIGTERM timeout=30000 time=2026-09-17T02:44:53Z level=info msg="Started new container" container=portainer image=portainer/portainer-ce:lts new_id=ea028ff0ad81 time=2026-09-17T02:44:53Z level=info msg="Update session completed" failed=0 notify=no scanned=10 skipped=0 updated=1 time=2026-09-18T02:45:33Z level=info msg="Found new image" container=nextcloud-cron image=nextcloud:stable-fpm-alpine new_id=5ccfc4f67654 time=2026-09-18T02:45:36Z level=info msg="Found new image" container=nextcloud-app image=nextcloud:stable-fpm-alpine new_id=5ccfc4f67654 time=2026-09-18T02:45:42Z level=info msg="Found new image" container=nextcloud-nginx image=nginx:alpine-slim new_id=d6500b38851f time=2026-09-18T02:45:59Z level=info msg="Found new image" container=nextcloud-postgres image=postgres:18-alpine new_id=c293117fcecd time=2026-09-18T02:45:59Z level=info msg="Stopping container" container=nextcloud-nginx id=378dd00412b1 signal=SIGQUIT timeout=30000 time=2026-09-18T02:46:01Z level=info msg="Stopping container" container=nextcloud-cron id=0067a345ace2 signal=SIGQUIT timeout=30000 time=2026-09-18T02:46:31Z level=info msg="Stopping container" container=nextcloud-app id=9b738d6a7825 signal=SIGQUIT timeout=30000 time=2026-09-18T02:46:32Z level=info msg="Stopping container" container=nextcloud-postgres id=6c56bf0215c9 signal=SIGINT timeout=30000 time=2026-09-18T02:46:32Z level=info msg="Started new container" container=nextcloud-postgres image=postgres:18-alpine new_id=69afcc7cf216 time=2026-09-18T02:46:33Z level=info msg="Started new container" container=nextcloud-app image=nextcloud:stable-fpm-alpine new_id=945d6d1fd848 time=2026-09-18T02:46:34Z level=info msg="Started new container" container=nextcloud-cron image=nextcloud:stable-fpm-alpine new_id=fda1ab487c21 time=2026-09-18T02:46:34Z level=warn msg="Updated container state to failed" error="failed to create container: failed to create container: Error response from daemon: No such container: 9b738d6a78250d731816cc5020d8cfaf55e605cd510f4d4662688bd9a6c4e0c7" container_id=378dd00412b1 name=nextcloud-nginx time=2026-09-18T02:46:34Z level=info msg="Update session completed" failed=1 notify=no scanned=10 skipped=0 updated=

Additional Context

Here is my compose file of my nextcloud, after it failed, im using docker compose up -d --force-recreate to recreate the container

yaml
services:
  # Note: MariaDB is an external service. You can find more information about the configuration here:
  # https://hub.docker.com/_/mariadb
  db:
    # Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server
    image: postgres:18-alpine
    restart: unless-stopped
    container_name: nextcloud-postgres
    ports:
      - 5432:5432
    volumes:
      - /home/marmar/nextcloud/postgres:/var/lib/postgresql
    environment:
      - POSTGRES_PASSWORD=asdf
      - POSTGRES_USER=nextcloud
      - POSTGRES_DB=nextcloud

  # db:
  #   # Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server
  #   image: mariadb:11.8
  #   restart: unless-stopped
  #   container_name: nextcloud-mariadb
  #   ports:
  #     - 3308:3306
  #   command: --transaction-isolation=READ-COMMITTED
  #   volumes:
  #     - /home/marmar/nextcloud/mariadb:/var/lib/mysql
  #   environment:
  #     - MYSQL_ROOT_PASSWORD=asdf
  #     - MYSQL_PASSWORD=asdf
  #     - MYSQL_DATABASE=nextcloud
  #     - MYSQL_USER=nextcloud

  # Note: Redis is an external service. You can find more information about the configuration here:
  # https://hub.docker.com/_/redis
  redis:
    image: redis:alpine
    restart: unless-stopped
    container_name: nextcloud-redis
    command: ["redis-server", "--requirepass", "asdf"]

  app:
    image: nextcloud:stable-fpm-alpine
    restart: unless-stopped
    container_name: nextcloud-app
    depends_on:
      - redis
      - db
    volumes:
      - /home/marmar/nextcloud/nextcloud-file:/var/www/html
      - /nextcloud/data:/data
    environment:
      - PHP_MEMORY_LIMIT=1G
      - PHP_UPLOAD_LIMIT=100G
      - REDIS_HOST=redis
      - REDIS_HOST_PORT=6379
      - REDIS_HOST_PASSWORD=asdf
      - NEXTCLOUD_DATA_DIR=/data
      # MYSQL
      # - MYSQL_PASSWORD=root
      # - MYSQL_DATABASE=nextcloud
      # - MYSQL_USER=root
      # - MYSQL_HOST=192.168.2.201
      # POSTGRES
      - POSTGRES_DB=nextcloud
      - POSTGRES_USER=nextcloud
      - POSTGRES_PASSWORD=asdf
      - POSTGRES_HOST=db

  cron:
    image: nextcloud:stable-fpm-alpine
    restart: unless-stopped
    container_name: nextcloud-cron
    volumes:
      - /home/marmar/nextcloud/nextcloud-file:/var/www/html
      - /nextcloud/data:/data
      # NOTE: The `volumes` config of the `cron` and `app` containers must match
    entrypoint: /cron.sh
    depends_on:
      - db
      - redis
    environment:
      - PHP_MEMORY_LIMIT=512M

  # Note: Nginx is an external service. You can find more information about the configuration here:
  # https://hub.docker.com/_/nginx/
  web:
    image: nginx:alpine-slim
    restart: unless-stopped
    container_name: nextcloud-nginx
    ports:
      - 8991:80
    #depends_on:
    #  - app
    volumes:
      # https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html
      - ./nginx.conf:/etc/nginx/nginx.conf:ro
    volumes_from:
      - app

# volumes:
# #  nextcloud:
#   db:

Source: nicholas-fedor/watchtower