Podman windows initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted #24992
-
I put Podman on Windows 11 by following the official steps. Everything runs smoothly except postgres volumes. I see the error "chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted". I try these commands from similar talks but they fail:
here is the output for the commands:
I use windows 11 with wsl2 installed. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Does it make any diference if you add the option I tried to auto-detect such UIDs and GIDs here |
Beta Was this translation helpful? Give feedback.
I forgot to say, using named volumes is often easier than using directories.
To use a named volume, run these commands