But when i try to create my pmm-server container, I get this error:
FATAL: /srv is not writable for pmm user.
Please make sure that /srv is owned by uid 1000 and gid 1000 and try again.
You can change ownership by running: sudo chown -R 1000:1000 /srv
I feel like I’ve somehow missed a step or there’s missing instruction in the documentation?
I am not sure how the volume ended up having different permissions than expected if it’s brand new. Anyhow, you can modify the perms by using a temporary container for example:
FATAL: /srv is not writable for pmm user.
Please make sure that /srv is owned by uid 1000 and gid 1000 and try again.
You can change ownership by running: sudo chown -R 1000:1000 /srv
It looks like for some reason it isn’t looking at the docker volume I’ve created?
just in case try also creating one file inside /srv and set its owner to 1000, then check if the permissions are still there on the volume after creating the pmm container. If the dir is empty the perm might get reset
No shouldn’t be be a leftover container, I literally scrapped the volume when I did it again
docker volume rm pmm-data
I get a unknown user/group when I try to transfer ownership to pmm user specifically.
Not sure what’s going on, I can see the original owner belongs to root, when I initialise the pmm-server container. I can see files getting written to the /srv folder and the permissions changing to 1000. But I get that error still?
Ok nevermind I ended up just doing a clean uninstall of docker and removing all docker files in my file system (I was only using docker for percona on this server). Re-installed docker, and followed instructions again and it worked fine. Must of had some old data that somehow screwed up the installation.