boschkundendienst / guacamole-docker-compose

Guacamole with docker-compose using PostgreSQL, nginx with SSL (self-signed)
GNU General Public License v3.0
983 stars 410 forks source link

Trying to use QuickStart #32

Closed Grizaster closed 2 years ago

Grizaster commented 2 years ago

I tried to just test this with QuickStart, but the Postgres Container does not start. docker logs postgres_guacamole_compose I get following:

mkdir: cannot create directory ‘/var/lib/postgresql/data/guacamole’: Permission denied
mkdir: cannot create directory ‘/var/lib/postgresql/data/guacamole’: Permission denied
mkdir: cannot create directory ‘/var/lib/postgresql/data/guacamole’: Permission denied
mkdir: cannot create directory ‘/var/lib/postgresql/data/guacamole’: Permission denied
mkdir: cannot create directory ‘/var/lib/postgresql/data/guacamole’: Permission denied
mkdir: cannot create directory ‘/var/lib/postgresql/data/guacamole’: Permission denied
mkdir: cannot create directory ‘/var/lib/postgresql/data/guacamole’: Permission denied
mkdir: cannot create directory ‘/var/lib/postgresql/data/guacamole’: Permission denied
mkdir: cannot create directory ‘/var/lib/postgresql/data/guacamole’: Permission denied
mkdir: cannot create directory ‘/var/lib/postgresql/data/guacamole’: Permission denied
mkdir: cannot create directory ‘/var/lib/postgresql/data/guacamole’: Permission denied

everything is running as root, what can I do about it ;)

Grizaster commented 2 years ago

I found the cause... SELinux :) I couldn't fix it with selinux but without ;) so if I find the solution without deactivating selinux, I will comment/pull or something

Grizaster commented 2 years ago

You can add on volume configuration the addition ... :Z to not let the files be labeled for se linux