

- HOW TO REMOTE EXEC TERRAFORM DOCKER RUN IMAGE INSTALL
- HOW TO REMOTE EXEC TERRAFORM DOCKER RUN IMAGE MANUAL
While in the bash shell, create tables from the initialization script for the new database. Once completed, enter quit to exit mysql and return to the bash shell for the container. GRANT SELECT,INSERT,UPDATE,DELETE ON guacamole_db.* TO PRIVILEGES When running the below commands, replace any instance of password with a secure password string for the mysql root user and the new user for your database, respectively. While in the mysql prompt, change the root password, create a database, and create a new user for that database. The prompt should change again to mysql>. Within the bash shell prompt for the container, log in to mysql as the root user: mysql -u root -p The shell prompt now changes to bash-4.4# or something similar. Open a bash shell within the MySQL Docker container.

docker cp initdb.sql example-mysql:/guac_db.sql Rename and move initdb.sql into the MySQL container. View the generated password in the logs: docker run -name example-mysql -e MYSQL_RANDOM_ROOT_PASSWORD=yes -e MYSQL_ONETIME_PASSWORD=yes -d mysql/mysql-serverĭocker logs should print the password in the terminal. Generate a one-time password for MySQL root.
HOW TO REMOTE EXEC TERRAFORM DOCKER RUN IMAGE MANUAL
Guacamole Manual and review any sections with “authentication” in their headings.Ĭreate a database initialization script to create a table for authentication: docker run -rm guacamole/guacamole /opt/guacamole/bin/initdb.sh -mysql > initdb.sql Database authentication through MySQLis covered in this section, though PostgreSQL and MariaDB are supported supported as well as other non-database methods. Setting up MySQL for Database AuthenticationĪpache Guacamole requires a method for user authentication.
HOW TO REMOTE EXEC TERRAFORM DOCKER RUN IMAGE INSTALL
Install Docker Engine section of Docker’s official documentation.Īfter installation, you can pull the following Docker images for use in later steps: docker pull guacamole/guacamole Installing and Using Docker on CentOS and Fedoraįor complete instructions on even more Linux distributions, reference the

Installing and Using Docker on Ubuntu and Debian To install Docker CE (Community Edition), follow the instructions within one of the guides below: If you’re not familiar with the sudo command, you can check our Commands that require elevated privileges are prefixed with sudo. This guide is written for a non-root user.
