The instructions for installing Postgres have a couple problems. First problem is that the instructions start out using /var/lib/pgsql/ but then later switch to /var/lib/postgresql. Only the first two lines use the /var/lib/pgsql/ form, so they should probably be switched to /var/lib/postgresql.
Then the next step only works when using sudo docker rather than podman:
At this point in the instructions, /var/lib/postgresql/azafea/data already exists and is owned by root, but /var/lib/postgresql/azafea/data/pgdata` does not exist. If I create that directory too, then the podman command fails with:
chmod: changing permissions of '/var/lib/postgresql/azafea/data/pgdata': Permission denied
At this point, I'm wondering which user is supposed to own which directories here. I understand that the next step in the installation instructions has me creating an azafea user inside the container, but no such user exists on the host system, and if I were to create that user on the host, then the uids would not match anyway. Probably this is an easy problem, but I'm a stupid desktop developer and don't know anything.
The instructions for installing Postgres have a couple problems. First problem is that the instructions start out using
/var/lib/pgsql/
but then later switch to/var/lib/postgresql
. Only the first two lines use the/var/lib/pgsql/
form, so they should probably be switched to/var/lib/postgresql
.Then the next step only works when using
sudo docker
rather than podman:At this point in the instructions,
/var/lib/postgresql/azafea/data
already exists and is owned by root, but /var/lib/postgresql/azafea/data/pgdata` does not exist. If I create that directory too, then the podman command fails with:At this point, I'm wondering which user is supposed to own which directories here. I understand that the next step in the installation instructions has me creating an azafea user inside the container, but no such user exists on the host system, and if I were to create that user on the host, then the uids would not match anyway. Probably this is an easy problem, but I'm a stupid desktop developer and don't know anything.