Skip to content

Instantly share code, notes, and snippets.

Last active Apr 29, 2019
What would you like to do?
Installing Apache Guacamole
  1. Install Docker
apt-get update
apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL | apt-key add -
add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"
apt-get update
apt-get install -y docker-ce docker-ce-cli
docker run hello-world
  1. Setup the docker containers
docker run --name guac_guacd -e GUACD_LOG_LEVEL=debug -d guacamole/guacd
docker run --rm guacamole/guacamole /opt/guacamole/bin/ --mysql > initdb.sql

docker run                                                     \
    --name guac_mysql                                          \
    -e MYSQL_ROOT_PASSWORD=rootpassword                        \
    -e MYSQL_DATABASE=guac_db                                  \
    -e MYSQL_USER=guac_user                                    \
    -e MYSQL_PASSWORD=guac_password                            \
    -v `pwd`/initdb.sql:/docker-entrypoint-initdb.d/initdb.sql \
    -d mysql

docker run                          \
    --name guac_guacamole           \
    --link guac_guacd:guacd         \
    --link guac_mysql:mysql         \
    -e MYSQL_DATABASE=guac_db       \
    -e MYSQL_USER=guac_user         \
    -e MYSQL_PASSWORD=guac_password \
    -d -p 8080:8080                 \
  1. http://:8080/guacamole/
  • guacadmin:guacadmin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment