Skip to content

Instantly share code, notes, and snippets.

@smling
Last active January 21, 2024 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smling/38e9b5a4d442710050938445aedce650 to your computer and use it in GitHub Desktop.
Save smling/38e9b5a4d442710050938445aedce650 to your computer and use it in GitHub Desktop.
Install Giuacamole with Docker
# Get DB schema MySQL format and delete exit container.
# Remember run in server to setup structure.
docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --mysql > initdb.sql
docker rm $(docker ps --filter status=exited -q)
DNS=192.168.0.1
docker run --name guacd -p 4822:4822 \
--dns ${DNS} \
--restart unless-stopped \
-d guacamole/guacd
GUACD_CONTAINER_NAME=guacd
DNS=192.168.0.1
MYSQL_HOSTNAME=192.168.50.25
MYSQL_USER=guacamole
MYSQL_PASSWORD=guacamole
MYSQL_DATABASE=guacamole
docker run --name guacamole \
--link ${GUACD_CONTAINER_NAME}:guacd \
--dns ${DNS} \
--restart unless-stopped \
-e MYSQL_HOSTNAME=${MYSQL_HOSTNAME} \
-e MYSQL_USER=${MYSQL_USER} \
-e MYSQL_PASSWORD=${MYSQL_PASSWORD} \
-e MYSQL_DATABASE=${MYSQL_DATABASE} \
-p 8080:8080 \
-d guacamole/guacamole
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment