Cannot update docker installation

Describe the problem/error/question

When pulling new versions (:latest and :2.3.1) and launching the container, logs state the version is still running on 1.119.2.

What is the error message (if any)?

N/A

Please share your workflow

N/A

Share the output returned by the last node

N/A

Information on your n8n setup

  • n8n version: 1.119.2
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system: Ubuntu 24.04 LTS

Hi @Matt_Marchio,

Please share your docker compose file or the docker commands you ran

services:
 postgres:
    build:
      context: .
      dockerfile: postgres_Dockerfile
    image: postgres:17.5-bullseye
    container_name: postgres
    restart: always
    ports:
      - "5432:5432"
    volumes:
      - postgres_data:/var/lib/postgresql/data
    tty: true
 traefik:
   image: "traefik"
   restart: always
   command:
     - "--api.insecure=true"
     - "--providers.docker=true"
     - "--providers.docker.exposedbydefault=false"
     - "--entrypoints.web.address=:80"
     - "--entrypoints.web.http.redirections.entryPoint.to=websecure"
     - "--entrypoints.web.http.redirections.entrypoint.scheme=https"
     - "--entrypoints.websecure.address=:443"
     - "--certificatesresolvers.mytlschallenge.acme.tlschallenge=true"
     - "--certificatesresolvers.mytlschallenge.acme.email=${SSL_EMAIL}"
     - "--certificatesresolvers.mytlschallenge.acme.storage=/letsencrypt/acme.json"
   ports:
     - "80:80"
     - "443:443"
   volumes:
     - traefik_data:/letsencrypt
     - /var/run/docker.sock:/var/run/docker.sock:ro

 n8n:
#   image: docker.n8n.io/n8nio/n8n:latest
   image: n8n-curl
   restart: always
   container_name: n8n
   ports:
     - "127.0.0.1:5678:5678"
   labels:
     - traefik.enable=true
     - traefik.http.routers.n8n.rule=Host(`${DOMAIN_NAME}`)
     - traefik.http.routers.n8n.tls=true
     - traefik.http.routers.n8n.entrypoints=web,websecure
     - traefik.http.routers.n8n.tls.certresolver=mytlschallenge
     - traefik.http.middlewares.n8n.headers.SSLRedirect=true
     - traefik.http.middlewares.n8n.headers.STSSeconds=315360000
     - traefik.http.middlewares.n8n.headers.browserXSSFilter=true
     - traefik.http.middlewares.n8n.headers.contentTypeNosniff=true
     - traefik.http.middlewares.n8n.headers.forceSTSHeader=true
     - traefik.http.middlewares.n8n.headers.SSLHost=${DOMAIN_NAME}
     - traefik.http.middlewares.n8n.headers.STSIncludeSubdomains=true
     - traefik.http.middlewares.n8n.headers.STSPreload=true
     - traefik.http.routers.n8n.middlewares=n8n@docker
   environment:
     - N8N_HOST=${DOMAIN_NAME}
     - N8N_PORT=5678
     - N8N_PROTOCOL=http
     - NODE_ENV=production
     - N8N_CORS_ALLOW_ORIGIN=http:localhost:5678,http://localhost
     - N8N_DIAGNOSTICS_ENABLED=false
     - N8N_RUNNERS_ENABLED=true
     - WEBHOOK_URL=http://${DOMAIN_NAME}/
     - GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
     - EXECUTIONS_TIMEOUT=-1
     - DB_TYPE=postgresdb
     - DB_POSTGRESDB_DATABASE=ideas
     - DB_POSTGRESDB_HOST=postgres
     - DB_POSTGRESDB_PORT=5432
     - DB_POSTGRESDB_USER=pguser
     - DB_POSTGRESDB_SCHEMA=public
     - DB_POSTGRESDB_PASSWORD=pguser
   volumes:
     - /home/public/workspace/workspace/n8n/.n8n:/home/node/.n8n
    #  - n8n_data:/home/node/.n8n
     - /home/public/workspace/workspace/comfyui/infra/data:/comfyui/data
   depends_on:
     - postgres
volumes:
  # n8n_data:
  traefik_data:
  postgres_data:

FROM docker.n8n.io/n8nio/n8n

USER root

RUN wget https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.4/x86_64/apk.static

RUN chmod +x apk.static
RUN ./apk.static -X http://dl-cdn.alpinelinux.org/alpine/v3.22/main -U --allow-untrusted --initdb add apk-tools

RUN apk --update add curl
RUN apk add ffmpeg

docker pull n8nio/n8n:latest -or- docker pull n8nio/n8n:2.3.1
docker build -t n8n-curl .

docker compose up -d && docker logs -f n8n

What is the n8n-curl image you’re using? Is it a custom image you created with the Dockerfile?

Try and use the following image in your dockerfile and make sure you pull:

docker pull n8nio/n8n

I included it’s dockerfile

Try update the Dockerfile as well with the image. Then when you build try and tag your image with “:latest”

docker build -t n8n-curl:latest .

Can you also print your docker images for me:

docker images
1 Like

docker build -t n8n-curl:latest . worked, thanks. Hopefully this fixes the really nasty error with the sub workflow