Replies: 1 comment 1 reply
-
Unfortunately, the (filesystem) needs of databases typically do not handle filesystems like those provided by Windows / "VM file sharing" very well, so I'd suggest moving your database files into the Linux filesystem instead (and if you need to access them from Windows for some reason, share the other direction instead, but I can't imagine why you'd need to access the underlying storage of the database from Windows 🙈). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I‘m using the latest tag of postgres. The docker is running in WSL2 of windows 11.
Note: Following snapshots about container is from
portainer
Here is the windows information,

Here is the WSL information,


Here is the image's information,

After adding volume for the

pgdata
path, the container fails. Here is the mapping of volumes,Adding the

privilege
mode does not work,I know thos docker will use

postgres:postgres
user-group to start the container, but I already give the777
permission for the folder in my WSL, it does not work too,Here is the full error message,
Beta Was this translation helpful? Give feedback.
All reactions