Hi all,

I'm using Apache Guacamole 1.5.3 with a docker container.  I need to change several settings as user-mapping.xml, guacamole.properties or include new extensions i.e. change my custom GUACAMOLE_HOME and keep it accross docker restarts.

The command I use to start Guacamole in docker is:

docker run --name mymachine-guacamole --restart unless-stopped --link mymachine-guacd:guacd -e GUACAMOLE_HOME=/etc/guacamole -v guacamole-home:/etc/guacamole -d -p 8080:8080 guacamole/guacamole:latest

Firstly I created the docker volume guacamole-home with my persistent Guacamole settings.

When I watch the docker logs I see between other lines:

...
11:37:54.419 [localhost-startStop-1] INFO o.a.g.environment.LocalEnvironment - GUACAMOLE_HOME is "/home/guacamole/.guacamole". 11:37:54.523 [localhost-startStop-1] INFO o.a.g.GuacamoleServletContextListener - Read configuration parameters from "/home/guacamole/.guacamole/guacamole.properties".
...

So I don't know why GUACAMOLE_HOME isn't changed before Tomcat starts or the start.sh script doesn't take into account. Moreover the start.sh script always cleans GUACAMOLE_HOME at start.

The way I know to do this is performing for example

docker exec mymachine-guacamole bash -c 'rm -r ${HOME}/.guacamole && ln -s ${GUACAMOLE_HOME}/.guacamole/ ${HOME}/.guacamole'

next of first docker run but of this way the changes are not persistent accross machine restarts and I have to manually exec the last mentioned docker exec command.

How can I solve this problem?

Thanks.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to