Ahh, now it works!
Here is my docker command:
docker run --name mymachine-guacamole --restart unless-stopped --link
mymachine-guacd:guacd -e GUACAMOLE_HOME=/etc/guacamole/.guacamole -v
guacamole-home:/etc/guacamole -d -p 8080:8080 guacamole/guacamole:latest
Problem solved. Thank you very much for your help.
Regards.
----
El 1/11/23 a las 23:07, Michael Jumper escribió:
On 11/1/2023 11:15 AM, Víctor J. Sánchez wrote:
Thanks for your answer.
I've read the documentation one and again and there's something I
cannot understand or something doesn't run fine.
Let's see:
- My docker volume with my custom settings is:
docker volume inspect guacamole-home
[
{
"CreatedAt": "2023-10-30T23:22:29+01:00",
"Driver": "local",
"Labels": null,
"Mountpoint": "/var/lib/docker/volumes/guacamole-home/_data",
"Name": "guacamole-home",
"Options": null,
"Scope": "local"
}
]
- The contents of my custom .guacamole directory are:
ls -p1 /var/lib/docker/volumes/guacamole-home/_data/.guacamole
extensions/
guacamole.properties
lib/
user-mapping.xml
user-mapping.xml.EXAMPLE
- The docker are executed:
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
The contents of the directory you provide as "GUACAMOLE_HOME" need to
be exactly that - the contents of GUACAMOLE_HOME. You are currently
providing your own additional directory inside there, also named
".guacamole", which is incorrect.
- List the contents of the directories from the container:
docker exec -it mymachine-guacamole ls -l /etc/guacamole/.guacamole/
total 20
drwxr-xr-x 2 guacamole guacamole 4096 Oct 30 22:30 extensions
-rw-r--r-- 1 guacamole guacamole 111 Oct 30 23:00 guacamole.properties
drwxr-xr-x 2 guacamole guacamole 4096 Oct 30 22:30 lib
-rw-r--r-- 1 guacamole guacamole 497 Oct 31 16:49 user-mapping.xml
-rw-r--r-- 1 guacamole guacamole 1189 Oct 30 22:30
user-mapping.xml.EXAMPLE
docker exec -it mymachine-guacamole ls -l /home/guacamole/.guacamole/
total 12
drwxr-xr-x 2 guacamole guacamole 4096 Nov 1 17:40 extensions
-rw-r--r-- 1 guacamole guacamole 111 Nov 1 17:40 guacamole.properties
drwxr-xr-x 2 guacamole guacamole 4096 Nov 1 17:40 lib
If you did "ls -la" instead of "ls -l" for
"/home/guacamole/.guacamole/", I suspect you would see an additional
".guacamole" directory there, copied verbatim from the GUACAMOLE_HOME
you provided.
You need to ensure your template GUACAMOLE_HOME contains only what you
want the image's GUACAMOLE_HOME to contain. There should be no
".guacamole" directory there; only files that would go directly within
GUACAMOLE_HOME (ie: the "extensions" directory,
"guacamole.properties", etc.).
- Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]