Unable to deploy Immchi on nas
Hi all,
Attached is my docker file
and following command I used to create volume in docker desktop running on windows 11
docker volume create --driver local --opt type=cifs --opt device=//192.168.1.98/plex/docker/immchi/picture --opt o=user=dockeruser,password='xxxxxxxx' myimmchipicvolume
docker volume create --driver local --opt type=cifs --opt device=//192.168.1.98/plex/docker/immchi/db--opt o=user=dockeruser,password='xxxxxxxx' myimmchidbvolume
But when I run docker-compose -f .\immchi\docker-compose.yml up
I am getting
immich_postgres | chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted
immich_postgres | The files belonging to this database system will be owned by user "postgres".
immich_postgres | This user must also own the server process.
immich_postgres |
immich_postgres | The database cluster will be initialized with locale "en_US.utf8".
immich_postgres | The default database encoding has accordingly been set to "UTF8".
immich_postgres | The default text search configuration will be set to "english".
immich_postgres |
immich_postgres | Data page checksums are enabled.
immich_postgres |
immich_postgres | initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted
immich_postgres | fixing permissions on existing directory /var/lib/postgresql/data ...
The permission on folder is full control by everyone
Please assist me further.
Attached is my docker file
and following command I used to create volume in docker desktop running on windows 11
docker volume create --driver local --opt type=cifs --opt device=//192.168.1.98/plex/docker/immchi/picture --opt o=user=dockeruser,password='xxxxxxxx' myimmchipicvolume
docker volume create --driver local --opt type=cifs --opt device=//192.168.1.98/plex/docker/immchi/db--opt o=user=dockeruser,password='xxxxxxxx' myimmchidbvolume
But when I run docker-compose -f .\immchi\docker-compose.yml up
I am getting
immich_postgres | chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted
immich_postgres | The files belonging to this database system will be owned by user "postgres".
immich_postgres | This user must also own the server process.
immich_postgres |
immich_postgres | The database cluster will be initialized with locale "en_US.utf8".
immich_postgres | The default database encoding has accordingly been set to "UTF8".
immich_postgres | The default text search configuration will be set to "english".
immich_postgres |
immich_postgres | Data page checksums are enabled.
immich_postgres |
immich_postgres | initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted
immich_postgres | fixing permissions on existing directory /var/lib/postgresql/data ...
The permission on folder is full control by everyone
Please assist me further.

docker-compose.yml3.59KB