Closed Starli0n closed 6 years ago
Give me please the output of docker version
and docker-compose version
Did you execute this commands?
I tested this project with different versions of the docker on 16 and 18 Ubuntu and on mac os x
@Starli0n I reproduce the bug! I will try to solve it
I made another test by not generating the initdb.sql and I have the exact same issue.
It seems that the last version of postgres does not take into account the script.
I do not know how to initiate the database then.
@Starli0n Try again. It seems that postgres reads init script again.
sudo rm -r data
2.2 rm init/initdb.sql
cd init
3.2 docker run --rm guacamole/guacamole:0.9.14 /opt/guacamole/bin/initdb.sh --postgres > initdb.sql
3.3 cd ..
docker-compose down && docker-compose up
I think this helps you
Unfortunately, it does not work for me and I still have the same error :-(
I paid attention to remove every postgres and guacamole images I had before pulling with the images with the right tags
Also I change the tag of postgres in the docker-compose file
(Besides, the volume 'data' seems to not be used in your docker-compose file)
@Starli0n Did you delete the data folder? try this
What OS and version of docker, docker-compose do you use?
Actually, it was a permission issue and so /docker-entrypoint-initdb.d
was skipped in the first place
I had a umask initially set to 077 and I set it to 0022 like the one defined inside the postgres image
This solved my issue
umask 0022
So the init
folder and initdb.sql
were set with the right permissions before starting the container
I tested with the last tags:
Thank you so much for your help
Hi,
The project does not work out of the box anymore
After a
docker-compose up -d
, I have the following error while trying to connect to the url:http://ip-server:8080/guacamole
Nevertheless, I have the correct Apache Tomcat home page at the address:
http://ip-server:8080
Could you please advice on the subject ?
Thank you in advance