immich github doker for postgress tags for v18 fail on Unraid slackware linux OS shim issues. #7769

Closed
opened 2026-02-05 13:17:47 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @bmartino1 on GitHub (Nov 6, 2025).

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

https://github.com/immich-app/base-images/pkgs/container/postgres

I maintain a Community app on the unraid linux platform. v17 Postgres tags appear to still work v16 is what I ship in my template as that was around the time/era of the plugin change over and where immich developed and maintained there own Postgres image for use with immich.

so some unknown issues the lattest v18 tag will not work on Slackware unraid linux. I'm not aware of adational Docker variables needed to run postgress v18 on unraid.

The OS that Immich Server is running on

Unraid

Version of Immich Server

n/a

Version of Immich Mobile App

n/a

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

VM - Proxmox - Unraid.

Your docker-compose.yml content

#n/a - Unraid CA builds a docker run line. While I also maintain a comose which i will test v18 next in..

# Always use the compose file from the current release:
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
# Main branch may not match the latest release.

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:$
    # extends:
    #   file: hwaccel.transcoding.yml
    #   service: cpu
    volumes:
      - immich-photos:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - '2283:2283'
    depends_on:
      - redis
      - database
    restart: always
    healthcheck:
      disable: false
    networks:
      immich-net:
        ipv4_address: 172.19.0.10
    labels:
      net.unraid.docker.icon: 'https://raw.githubusercontent.com/imagegenius/templates/main/unraid/img/immich.png'
      net.unraid.docker.webui: http://[IP]:[PORT:2283]
      folder.view: immich
      net.unraid.docker.managed: 'composeman'

  immich-machine-learning:
    container_name: immich_machine_learning
    image: ghcr.io/immich-app/immich-machine-learning:$
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: always
    healthcheck:
      disable: false
    networks:
      immich-net:
        ipv4_address: 172.19.0.11
    labels:
      net.unraid.docker.icon: 'https://raw.githubusercontent.com/imagegenius/templates/main/unraid/img/immich.png'
      folder.view: immich
      net.unraid.docker.managed: 'composeman'

  redis:
    container_name: immich_redis
    image: docker.io/valkey/valkey:8-bookworm@sha256:ff21bc0f8194dc9c105b769aeabf9585fea6a8ed649c0781caeac5cb3c247884
    volumes:
      - redis-data:/data
    healthcheck:
      test: redis-cli ping || exit 1
    restart: always
    networks:
      immich-net:
        ipv4_address: 172.19.0.12
    labels:
      net.unraid.docker.icon: 'https://raw.githubusercontent.com/A75G/docker-templates/master/templates/icons/redis.png'
      folder.view: immich
      net.unraid.docker.managed: 'composeman'

  database:
    container_name: immich_postgres
#    image: ghcr.io/immich-app/postgres:16-vectorchord0.3.0-pgvectors0.3.0
#old working image during Change over... testing v18
    image: ghcr.io/immich-app/postgres:18-vectorchord0.5.3
    environment:
      POSTGRES_PASSWORD: $
      POSTGRES_USER: $
      POSTGRES_DB: $
      POSTGRES_INITDB_ARGS: '--data-checksums'
    volumes:
      - postgres-data:/var/lib/postgresql/data
    restart: always
    networks:
      immich-net:
        ipv4_address: 172.19.0.13
    labels:
      net.unraid.docker.icon: 'https://raw.githubusercontent.com/A75G/docker-templates/master/templates/icons/postgres.png'
      folder.view: immich
      net.unraid.docker.managed: 'composeman'

networks:
  immich-net:
    driver: bridge
    ipam:
      config:
        - subnet: 172.19.0.0/16
          gateway: 172.19.0.1

volumes:
  model-cache:
    driver: local
    driver_opts:
      type: none
      device: /mnt/user/appdata/immich/config
      o: bind

  immich-photos:
    driver: local
    driver_opts:
      type: none
      device: /mnt/user/appdata/immich/photos
      o: bind

  postgres-data:
    driver: local
    driver_opts:
      type: none
      device: /mnt/user/appdata/immich/database/postgres
      o: bind

  redis-data:
    driver: local
    driver_opts:
      type: none
      device: /mnt/user/appdata/immich/database/redis
      o: bind

Your .env content

#n/a - https://bmartino1.weebly.com/immich-on-unraid-docker-compose-guide.html

# Documentation for all supported env variables:
# https://immich.app/docs/install/environment-variables

# The location where uploaded files are stored (see compose bind mount)
# UPLOAD_LOCATION=./library  # (handled by compose: /usr/src/app/upload)

# Database files location (handled by compose; network shares not supported for DB)
# DB_DATA_LOCATION=./postgres

# To set a timezone, uncomment and choose a TZ from:
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
# TZ=America/Chicago

# Immich version (pin to a specific version like "v1.71.0" if desired)
IMMICH_VERSION=release

# Postgres connection
DB_PASSWORD=postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

Reproduction steps

1.in unraid OS go to ca and search immich
2.select and install immich_postrgress form bmartino1 repository
3.click advance togle at the top and edit teh registry to use a updated postgress immich docker tag
4. click apply. docker image should be pulled and postgress should install and work...

Following the unraid guide here:
https://bmartino1.weebly.com/immich-on-unraid-ca-docker.html

Relevant log output

Status: Downloaded newer image for ghcr.io/immich-app/postgres:18-vectorchord0.5.3
1ab733b821ddd6d4e355f4ee23f9156710120bf8266c349a41ed1d6e733bffa0
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/mnt/user/appdata/postgresql_immich" to rootfs at "/var/lib/postgresql/data": change mount propagation through procfd: open o_path procfd: open /var/lib/docker/overlay2/0d4979603ee2eefd0eaf35902202f4ace0671f5e40ae7b68636e9f29cd981069/merged/var/lib/postgresql/data: no such file or directory: unknown.

The command failed.

Additional information

https://forums.unraid.net/topic/193997-guide-immich-docker-setup-unraid-ca/#findComment-1588863

again this still works for v16 and v17 of the Postgres github docker image. v18 worked for me in the past.

I'm not sure If I need to add additional docker data to the templatle to make a shim and if so how mush shim mermoy is need at the min...

Originally created by @bmartino1 on GitHub (Nov 6, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug https://github.com/immich-app/base-images/pkgs/container/postgres I maintain a Community app on the unraid linux platform. v17 Postgres tags appear to still work v16 is what I ship in my template as that was around the time/era of the plugin change over and where immich developed and maintained there own Postgres image for use with immich. so some unknown issues the lattest v18 tag will not work on Slackware unraid linux. I'm not aware of adational Docker variables needed to run postgress v18 on unraid. ### The OS that Immich Server is running on Unraid ### Version of Immich Server n/a ### Version of Immich Mobile App n/a ### Platform with the issue - [x] Server - [ ] Web - [ ] Mobile ### Device make and model VM - Proxmox - Unraid. ### Your docker-compose.yml content ```YAML #n/a - Unraid CA builds a docker run line. While I also maintain a comose which i will test v18 next in.. # Always use the compose file from the current release: # https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml # Main branch may not match the latest release. name: immich services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:$ # extends: # file: hwaccel.transcoding.yml # service: cpu volumes: - immich-photos:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - .env ports: - '2283:2283' depends_on: - redis - database restart: always healthcheck: disable: false networks: immich-net: ipv4_address: 172.19.0.10 labels: net.unraid.docker.icon: 'https://raw.githubusercontent.com/imagegenius/templates/main/unraid/img/immich.png' net.unraid.docker.webui: http://[IP]:[PORT:2283] folder.view: immich net.unraid.docker.managed: 'composeman' immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:$ volumes: - model-cache:/cache env_file: - .env restart: always healthcheck: disable: false networks: immich-net: ipv4_address: 172.19.0.11 labels: net.unraid.docker.icon: 'https://raw.githubusercontent.com/imagegenius/templates/main/unraid/img/immich.png' folder.view: immich net.unraid.docker.managed: 'composeman' redis: container_name: immich_redis image: docker.io/valkey/valkey:8-bookworm@sha256:ff21bc0f8194dc9c105b769aeabf9585fea6a8ed649c0781caeac5cb3c247884 volumes: - redis-data:/data healthcheck: test: redis-cli ping || exit 1 restart: always networks: immich-net: ipv4_address: 172.19.0.12 labels: net.unraid.docker.icon: 'https://raw.githubusercontent.com/A75G/docker-templates/master/templates/icons/redis.png' folder.view: immich net.unraid.docker.managed: 'composeman' database: container_name: immich_postgres # image: ghcr.io/immich-app/postgres:16-vectorchord0.3.0-pgvectors0.3.0 #old working image during Change over... testing v18 image: ghcr.io/immich-app/postgres:18-vectorchord0.5.3 environment: POSTGRES_PASSWORD: $ POSTGRES_USER: $ POSTGRES_DB: $ POSTGRES_INITDB_ARGS: '--data-checksums' volumes: - postgres-data:/var/lib/postgresql/data restart: always networks: immich-net: ipv4_address: 172.19.0.13 labels: net.unraid.docker.icon: 'https://raw.githubusercontent.com/A75G/docker-templates/master/templates/icons/postgres.png' folder.view: immich net.unraid.docker.managed: 'composeman' networks: immich-net: driver: bridge ipam: config: - subnet: 172.19.0.0/16 gateway: 172.19.0.1 volumes: model-cache: driver: local driver_opts: type: none device: /mnt/user/appdata/immich/config o: bind immich-photos: driver: local driver_opts: type: none device: /mnt/user/appdata/immich/photos o: bind postgres-data: driver: local driver_opts: type: none device: /mnt/user/appdata/immich/database/postgres o: bind redis-data: driver: local driver_opts: type: none device: /mnt/user/appdata/immich/database/redis o: bind ``` ### Your .env content ```Shell #n/a - https://bmartino1.weebly.com/immich-on-unraid-docker-compose-guide.html # Documentation for all supported env variables: # https://immich.app/docs/install/environment-variables # The location where uploaded files are stored (see compose bind mount) # UPLOAD_LOCATION=./library # (handled by compose: /usr/src/app/upload) # Database files location (handled by compose; network shares not supported for DB) # DB_DATA_LOCATION=./postgres # To set a timezone, uncomment and choose a TZ from: # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List # TZ=America/Chicago # Immich version (pin to a specific version like "v1.71.0" if desired) IMMICH_VERSION=release # Postgres connection DB_PASSWORD=postgres DB_USERNAME=postgres DB_DATABASE_NAME=immich ``` ### Reproduction steps 1.in unraid OS go to ca and search immich 2.select and install immich_postrgress form bmartino1 repository 3.click advance togle at the top and edit teh registry to use a updated postgress immich docker tag 4. click apply. docker image should be pulled and postgress should install and work... Following the unraid guide here: https://bmartino1.weebly.com/immich-on-unraid-ca-docker.html ### Relevant log output ```shell Status: Downloaded newer image for ghcr.io/immich-app/postgres:18-vectorchord0.5.3 1ab733b821ddd6d4e355f4ee23f9156710120bf8266c349a41ed1d6e733bffa0 docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/mnt/user/appdata/postgresql_immich" to rootfs at "/var/lib/postgresql/data": change mount propagation through procfd: open o_path procfd: open /var/lib/docker/overlay2/0d4979603ee2eefd0eaf35902202f4ace0671f5e40ae7b68636e9f29cd981069/merged/var/lib/postgresql/data: no such file or directory: unknown. The command failed. ``` ### Additional information https://forums.unraid.net/topic/193997-guide-immich-docker-setup-unraid-ca/#findComment-1588863 again this still works for v16 and v17 of the Postgres github docker image. v18 worked for me in the past. I'm not sure If I need to add additional docker data to the templatle to make a shim and if so how mush shim mermoy is need at the min...
Author
Owner

@bo0tzz commented on GitHub (Nov 6, 2025):

The mountpoint for postgres 18+ is different, see https://hub.docker.com/_/postgres#pgdata.

@bo0tzz commented on GitHub (Nov 6, 2025): The mountpoint for postgres 18+ is different, see https://hub.docker.com/_/postgres#pgdata.
Author
Owner

@bmartino1 commented on GitHub (Nov 6, 2025):

Thank you was looking for the documentation and couldn't find it. Knew it should be a simple fix.
https://hub.docker.com/_/postgres#pgdata

I will update and make a new unraid docker CA templatle to use with updated variables.

@bmartino1 commented on GitHub (Nov 6, 2025): Thank you was looking for the documentation and couldn't find it. Knew it should be a simple fix. https://hub.docker.com/_/postgres#pgdata I will update and make a new unraid docker CA templatle to use with updated variables.
Author
Owner

@bmartino1 commented on GitHub (Nov 6, 2025):

Apologies there was also a closed github thing elsewhere with some potential soultions ... more for migration issues latter: a closed case on this as well as there will per users from unraid users as a default volume path is now changed...
https://github.com/docker-library/postgres/pull/1259

Posting for github easy and fixes latter. as I will need to test and find a docker run fix for this to set pathign to a default location for postgress updates ... atm a simple change container volume path fixes this...

example v18
the container line /var/lib/postgresql/data
becomes /var/lib/postgresql/18/docker

latter v19

the container line /var/lib/postgresql/data
becomes /var/lib/postgresql/19/docker

Image

hopefully i can get pgdata and others to act and run nicely to force set postgrasee config to make the dta path in /var/lib/postgresql/data

and keep the old volume mount
/var/lib/postgresql/data

using Docker run not compose...

@bmartino1 commented on GitHub (Nov 6, 2025): Apologies there was also a closed github thing elsewhere with some potential soultions ... more for migration issues latter: a closed case on this as well as there will per users from unraid users as a default volume path is now changed... https://github.com/docker-library/postgres/pull/1259 Posting for github easy and fixes latter. as I will need to test and find a docker run fix for this to set pathign to a default location for postgress updates ... atm a simple change container volume path fixes this... example v18 the container line /var/lib/postgresql/data becomes /var/lib/postgresql/18/docker latter v19 the container line /var/lib/postgresql/data becomes /var/lib/postgresql/19/docker <img width="714" height="588" alt="Image" src="https://github.com/user-attachments/assets/61bf19a4-3a6a-4da7-b077-38b618cc5c5a" /> hopefully i can get pgdata and others to act and run nicely to force set postgrasee config to make the dta path in /var/lib/postgresql/data and keep the old volume mount /var/lib/postgresql/data using Docker run not compose...
Author
Owner

@bmartino1 commented on GitHub (Dec 4, 2025):

the unraid tempalte has been updated to set PGDATA varbale to the older location for compability...

Image Image
@bmartino1 commented on GitHub (Dec 4, 2025): the unraid tempalte has been updated to set PGDATA varbale to the older location for compability... <img width="887" height="581" alt="Image" src="https://github.com/user-attachments/assets/fc56e153-9c82-4466-a54a-029c87e5b0da" /> <img width="788" height="584" alt="Image" src="https://github.com/user-attachments/assets/8df58cae-5f5b-461f-8739-96ab7cb325d7" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#7769